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/slattach.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/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 3ffbb3ba8..96dec7e5f 100644 --- a/networking/slattach.c +++ b/networking/slattach.c | |||
@@ -110,13 +110,13 @@ static void set_state(struct termios *state, int encap) | |||
110 | /* Set encapsulation (SLIP, CSLIP, etc) */ | 110 | /* Set encapsulation (SLIP, CSLIP, etc) */ |
111 | if (ioctl_or_warn(handle, SIOCSIFENCAP, &encap) < 0) { | 111 | if (ioctl_or_warn(handle, SIOCSIFENCAP, &encap) < 0) { |
112 | bad: | 112 | bad: |
113 | restore_state_and_exit(1); | 113 | restore_state_and_exit(EXIT_FAILURE); |
114 | } | 114 | } |
115 | } | 115 | } |
116 | 116 | ||
117 | static void sig_handler(int signo ATTRIBUTE_UNUSED) | 117 | static void sig_handler(int signo ATTRIBUTE_UNUSED) |
118 | { | 118 | { |
119 | restore_state_and_exit(0); | 119 | restore_state_and_exit(EXIT_SUCCESS); |
120 | } | 120 | } |
121 | 121 | ||
122 | int slattach_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 122 | int slattach_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
@@ -239,5 +239,5 @@ int slattach_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
239 | system(extcmd); | 239 | system(extcmd); |
240 | 240 | ||
241 | /* Restore states and exit */ | 241 | /* Restore states and exit */ |
242 | restore_state_and_exit(0); | 242 | restore_state_and_exit(EXIT_SUCCESS); |
243 | } | 243 | } |