[hackers] [sbase] No need to print the name of the program || sin
commit b1b225c9eea6ef3032602c049b7b7ebfec853de1
Author: sin <sin_AT_2f30.org>
Date: Thu Jan 30 13:51:47 2014 +0000
No need to print the name of the program
The name is printed automatically. Add some missing newlines
as well.
diff --git a/split.c b/split.c
index a3fab74..ae6f3a7 100644
--- a/split.c
+++ b/split.c
_AT_@ -45,7 +45,7 @@ main(int argc, char **argv)
usage();
scale = sizes[toupper(*end)];
if(size > (UINT64_MAX/scale))
- eprintf("split: '%s': out of range
", tmp);
+ eprintf("'%s': out of range
", tmp);
size *= scale;
break;
case 'l':
_AT_@ -74,13 +74,13 @@ main(int argc, char **argv)
plen = strlen(prefix);
if(plen+slen > NAME_MAX)
- eprintf("split: names cannot exceed %d bytes", NAME_MAX);
+ eprintf("names cannot exceed %d bytes
", NAME_MAX);
strcpy(name, prefix);
if(file && strcmp(file, "-") != 0) {
in = fopen(file, "r");
if(!in)
- eprintf("split: '%s':", file);
+ eprintf("'%s':", file);
}
Nextfile:
_AT_@ -133,7 +133,6 @@ nextfile(FILE *f, char *buf, int plen, int slen)
f = fopen(buf, "w");
if(!f)
- eprintf("split: '%s':", buf);
+ eprintf("'%s':", buf);
return f;
}
-
Received on Thu Jan 30 2014 - 15:55:22 CET
This archive was generated by hypermail 2.3.0
: Thu Jan 30 2014 - 16:00:12 CET