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/telnet.c | |
parent | cb83abd7b6b052224c1f3b998e863aac76914afd (diff) | |
download | busybox-636a1f85e89432601c59cdc3239fc867b4adf051.zip busybox-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz |
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
Diffstat (limited to 'networking/telnet.c')
-rw-r--r-- | networking/telnet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/telnet.c b/networking/telnet.c index 32e9993..b357e69 100644 --- a/networking/telnet.c +++ b/networking/telnet.c @@ -122,7 +122,7 @@ static void conescape(void) " e exit telnet\r\n"); if (read(0, &b, 1) <= 0) - doexit(1); + doexit(EXIT_FAILURE); switch (b) { case 'l': @@ -143,7 +143,7 @@ static void conescape(void) rawmode(); break; case 'e': - doexit(0); + doexit(EXIT_SUCCESS); } write_str(1, "continuing...\r\n"); @@ -634,7 +634,7 @@ int telnet_main(int argc, char **argv) { len = read(0, G.buf, DATABUFSIZE); if (len <= 0) - doexit(0); + doexit(EXIT_SUCCESS); TRACE(0, ("Read con: %d\n", len)); handlenetoutput(len); } @@ -648,7 +648,7 @@ int telnet_main(int argc, char **argv) len = read(G.netfd, G.buf, DATABUFSIZE); if (len <= 0) { write_str(1, "Connection closed by foreign host\r\n"); - doexit(1); + doexit(EXIT_FAILURE); } TRACE(0, ("Read netfd (%d): %d\n", G.netfd, len)); handlenetinput(len); |