sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 99ded174b2b160d6f1823209f97bd1a813e12557
parent 6372a8f227317c3919fcbdf96dbd9ec4267b2336
Author: FRIGN <dev@frign.de>
Date:   Tue, 17 Mar 2015 23:35:11 +0100

Audit test(1)

Only add empty lines before returns, everything else is ok.
Also add the STANDARDS-section to the manpage, which was only
present as a heading until now.

Diffstat:
MREADME | 2+-
Mtest.1 | 5+++++
Mtest.c | 4++++
3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/README b/README @@ -74,7 +74,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support, =*| tail yes none =* tar non-posix none =*| tee yes none -=* test yes none +=*| test yes none =*| time yes none =* touch yes none #* tr yes none diff --git a/test.1 b/test.1 @@ -117,3 +117,8 @@ An error occurred. .Sh SEE ALSO .Xr expr 1 .Sh STANDARDS +The +.Nm +utility is compliant with the +.St -p1003.1-2008 +specification. diff --git a/test.c b/test.c @@ -87,6 +87,7 @@ find_test(struct test *tests, char *name) for (t = tests; t->name; t++) if (!strcmp(t->name, name)) return t; + return NULL; } @@ -114,6 +115,7 @@ twoarg(char *argv[]) return t->func(argv[1]); enprintf(2, "bad unary test %s\n", argv[0]); + return 0; /* not reached */ } @@ -129,6 +131,7 @@ threearg(char *argv[]) return !twoarg(argv + 1); enprintf(2, "bad binary test %s\n", argv[1]); + return 0; /* not reached */ } @@ -139,6 +142,7 @@ fourarg(char *argv[]) return !threearg(argv + 1); enprintf(2, "too many arguments\n"); + return 0; /* not reached */ }