diff options
author | Rob Landley <rob@landley.net> | 2015-09-11 16:35:14 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-09-11 16:35:14 -0500 |
commit | e5354ca12a232b3f97726214254a868771cb70d1 (patch) | |
tree | ba373c24ede64b8a18f11a02cf834ce99aa586bf /toys/pending/tftpd.c | |
parent | d067571abb2b7934f3350c90ca891beb987c68fd (diff) | |
download | toybox-e5354ca12a232b3f97726214254a868771cb70d1.tar.gz |
Replace toys.exithelp with help_exit() in lib.
Diffstat (limited to 'toys/pending/tftpd.c')
-rw-r--r-- | toys/pending/tftpd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/toys/pending/tftpd.c b/toys/pending/tftpd.c index 31af44be..806326eb 100644 --- a/toys/pending/tftpd.c +++ b/toys/pending/tftpd.c @@ -242,10 +242,7 @@ void tftpd_main(void) char *buf = toybuf; memset(&srcaddr, 0, sizeof(srcaddr)); - if (getsockname(0, (struct sockaddr *)&srcaddr, &socklen)) { - toys.exithelp = 1; - error_exit(NULL); - } + if (getsockname(0, (struct sockaddr *)&srcaddr, &socklen)) help_exit(0); if (TT.user) TT.pw = xgetpwnam(TT.user); if (*toys.optargs) xchroot(*toys.optargs); |