summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-10-02 23:43:00 +0100
committersin <sin@2f30.org>2014-10-02 23:43:00 +0100
commit328d8f718c2b53edeb7a953f2666977876e23cd1 (patch)
tree88a3232cd4bfb3211e4b4dfa7a4b06a5cd7fb28b
parent93c3f6321138be7b2eaa9eb9920df7cd8425ca73 (diff)
Stop this madness
-rw-r--r--eprintf.c2
-rw-r--r--ratox.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/eprintf.c b/eprintf.c
index f89cc3d..833367a 100644
--- a/eprintf.c
+++ b/eprintf.c
@@ -26,7 +26,7 @@ eprintf(const char *fmt, ...)
va_list ap;
va_start(ap, fmt);
- venprintf(EXIT_FAILURE, fmt, ap);
+ venprintf(1, fmt, ap);
va_end(ap);
}
diff --git a/ratox.c b/ratox.c
index c2a6d62..50ecfa0 100644
--- a/ratox.c
+++ b/ratox.c
@@ -1662,7 +1662,7 @@ usage(void)
fprintf(stderr, " -6\tIPv6 only\n");
fprintf(stderr, " -t\tEnable TCP mode (UDP by default)\n");
fprintf(stderr, " -p\tEnable TCP socks5 proxy\n");
- exit(EXIT_FAILURE);
+ exit(1);
}
int
@@ -1699,5 +1699,5 @@ main(int argc, char *argv[])
friendload();
loop();
shutdown();
- return EXIT_SUCCESS;
+ return 0;
}