commit 46cca1dbaa918f8b6f885937622ce6e54ce75ac3
parent 24ca114b0f8a88332f45ae4d2dff2c0b44c17456
Author: gottox@rootkit.lan <unknown>
Date: Wed, 19 Dec 2007 13:25:29 +0100
helpmessage goes to stderr now; replaced exit by return.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sltar.c b/sltar.c
@@ -22,8 +22,8 @@ int main(int argc, char *argv[]) {
if((argc != 2 || (a = argv[1][0]) == '\0') ||
argv[1][1] != '\0' || (a != 't' && a != 'x')) {
- puts("sltar-" VERSION " - suckless tar\nsltar [xt]");
- exit(EXIT_FAILURE);
+ fputs("sltar-" VERSION " - suckless tar\nsltar [xt]",stderr);
+ return EXIT_FAILURE;
}
for(lname[100] = fname[100] = l = 0; fread(b,END,1,stdin); l -= END) {
if(l <= 0) {