diff options
author | Bernhard Reutner-Fischer | 2008-05-19 09:29:47 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2008-05-19 09:29:47 +0000 |
commit | 636a1f85e89432601c59cdc3239fc867b4adf051 (patch) | |
tree | d43c9ca120c29bf2d4567b1bb0674c6a8bae2b6d /networking/slattach.c | |
parent | cb83abd7b6b052224c1f3b998e863aac76914afd (diff) | |
download | busybox-636a1f85e89432601c59cdc3239fc867b4adf051.zip busybox-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz |
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
Diffstat (limited to 'networking/slattach.c')
-rw-r--r-- | networking/slattach.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/slattach.c b/networking/slattach.c index 3ffbb3b..96dec7e 100644 --- a/networking/slattach.c +++ b/networking/slattach.c @@ -110,13 +110,13 @@ static void set_state(struct termios *state, int encap) /* Set encapsulation (SLIP, CSLIP, etc) */ if (ioctl_or_warn(handle, SIOCSIFENCAP, &encap) < 0) { bad: - restore_state_and_exit(1); + restore_state_and_exit(EXIT_FAILURE); } } static void sig_handler(int signo ATTRIBUTE_UNUSED) { - restore_state_and_exit(0); + restore_state_and_exit(EXIT_SUCCESS); } int slattach_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; @@ -239,5 +239,5 @@ int slattach_main(int argc ATTRIBUTE_UNUSED, char **argv) system(extcmd); /* Restore states and exit */ - restore_state_and_exit(0); + restore_state_and_exit(EXIT_SUCCESS); } |