Audit sponge(1)

Just a little usage()-fix. Mark it as audited in README.
This commit is contained in:
FRIGN 2015-03-01 23:42:16 +01:00
parent 0c9b52ef9b
commit 80d89c400f
2 changed files with 2 additions and 3 deletions

2
README
View File

@ -67,7 +67,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=*| sleep yes none =*| sleep yes none
sort no -m, -o, -d, -f, -i sort no -m, -o, -d, -f, -i
=* split yes none =* split yes none
=* sponge non-posix none =*| sponge non-posix none
#* strings yes none #* strings yes none
=* sync non-posix none =* sync non-posix none
=* tail yes none =* tail yes none

View File

@ -7,7 +7,7 @@
static void static void
usage(void) usage(void)
{ {
eprintf("usage: sponge file\n"); eprintf("usage: %s file\n", argv0);
} }
int int
@ -25,7 +25,6 @@ main(int argc, char *argv[])
if (!(tmpfp = tmpfile())) if (!(tmpfp = tmpfile()))
eprintf("tmpfile:"); eprintf("tmpfile:");
concat(stdin, "<stdin>", tmpfp, "<tmpfile>"); concat(stdin, "<stdin>", tmpfp, "<tmpfile>");
rewind(tmpfp); rewind(tmpfp);