[hackers] [sltar] helpmessage goes to stderr now; replaced exit by return. || gottox

From: <hg_AT_suckless.org>
Date: Sun, 11 Nov 2012 17:23:39 +0100 (CET)

changeset: 6:337e45094f42
user: gottox_AT_rootkit.lan
date: Wed Dec 19 13:25:29 2007 +0100
files: sltar.c
description:
helpmessage goes to stderr now; replaced exit by return.


diff -r db772b7d817e -r 337e45094f42 sltar.c
--- a/sltar.c Wed Dec 19 11:02:10 2007 +0100
+++ b/sltar.c Wed Dec 19 13:25:29 2007 +0100
_AT_@ -22,8 +22,8 @@
 
         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) {
Received on Sun Nov 11 2012 - 17:23:39 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 11 2012 - 17:24:22 CET