diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:29:47 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:29:47 +0000 |
commit | 636a1f85e89432601c59cdc3239fc867b4adf051 (patch) | |
tree | d43c9ca120c29bf2d4567b1bb0674c6a8bae2b6d /networking/telnetd.c | |
parent | cb83abd7b6b052224c1f3b998e863aac76914afd (diff) | |
download | busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.tar.bz2 busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.zip |
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r-- | networking/telnetd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index e312c0b41..3660d788f 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c | |||
@@ -262,7 +262,7 @@ make_new_session( | |||
262 | BB_EXECVP(loginpath, (char **)login_argv); | 262 | BB_EXECVP(loginpath, (char **)login_argv); |
263 | /* _exit is safer with vfork, and we shouldn't send message | 263 | /* _exit is safer with vfork, and we shouldn't send message |
264 | * to remote clients anyway */ | 264 | * to remote clients anyway */ |
265 | _exit(1); /*bb_perror_msg_and_die("execv %s", loginpath);*/ | 265 | _exit(EXIT_FAILURE); /*bb_perror_msg_and_die("execv %s", loginpath);*/ |
266 | } | 266 | } |
267 | 267 | ||
268 | /* Must match getopt32 string */ | 268 | /* Must match getopt32 string */ |
@@ -281,7 +281,7 @@ free_session(struct tsession *ts) | |||
281 | struct tsession *t = sessions; | 281 | struct tsession *t = sessions; |
282 | 282 | ||
283 | if (option_mask32 & OPT_INETD) | 283 | if (option_mask32 & OPT_INETD) |
284 | exit(0); | 284 | exit(EXIT_SUCCESS); |
285 | 285 | ||
286 | /* Unlink this telnet session from the session list */ | 286 | /* Unlink this telnet session from the session list */ |
287 | if (t == ts) | 287 | if (t == ts) |
@@ -325,7 +325,7 @@ free_session(struct tsession *ts) | |||
325 | 325 | ||
326 | #else /* !FEATURE_TELNETD_STANDALONE */ | 326 | #else /* !FEATURE_TELNETD_STANDALONE */ |
327 | 327 | ||
328 | /* Used in main() only, thus "return 0" actually is exit(0). */ | 328 | /* Used in main() only, thus "return 0" actually is exit(EXIT_SUCCESS). */ |
329 | #define free_session(ts) return 0 | 329 | #define free_session(ts) return 0 |
330 | 330 | ||
331 | #endif | 331 | #endif |