No need to print the name of the program

The name is printed automatically.  Add some missing newlines
as well.
This commit is contained in:
sin 2014-01-30 13:51:47 +00:00
parent fb12183c52
commit b1b225c9ee
1 changed files with 4 additions and 5 deletions

View File

@ -45,7 +45,7 @@ main(int argc, char **argv)
usage(); usage();
scale = sizes[toupper(*end)]; scale = sizes[toupper(*end)];
if(size > (UINT64_MAX/scale)) if(size > (UINT64_MAX/scale))
eprintf("split: '%s': out of range\n", tmp); eprintf("'%s': out of range\n", tmp);
size *= scale; size *= scale;
break; break;
case 'l': case 'l':
@ -74,13 +74,13 @@ main(int argc, char **argv)
plen = strlen(prefix); plen = strlen(prefix);
if(plen+slen > NAME_MAX) if(plen+slen > NAME_MAX)
eprintf("split: names cannot exceed %d bytes", NAME_MAX); eprintf("names cannot exceed %d bytes\n", NAME_MAX);
strcpy(name, prefix); strcpy(name, prefix);
if(file && strcmp(file, "-") != 0) { if(file && strcmp(file, "-") != 0) {
in = fopen(file, "r"); in = fopen(file, "r");
if(!in) if(!in)
eprintf("split: '%s':", file); eprintf("'%s':", file);
} }
Nextfile: Nextfile:
@ -133,7 +133,6 @@ nextfile(FILE *f, char *buf, int plen, int slen)
f = fopen(buf, "w"); f = fopen(buf, "w");
if(!f) if(!f)
eprintf("split: '%s':", buf); eprintf("'%s':", buf);
return f; return f;
} }