diff options
author | pjd <pjd@FreeBSD.org> | 2004-03-29 09:29:51 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-03-29 09:29:51 +0000 |
commit | b1d34c67437d6699de50766b885705e8ed7f934b (patch) | |
tree | ba1ffe78151541fa5ff3cfd61e560602c71ebc9f /libexec/fingerd | |
parent | c52614f2e51ecedd5397b2bc671620750dd89236 (diff) | |
download | FreeBSD-src-b1d34c67437d6699de50766b885705e8ed7f934b.zip FreeBSD-src-b1d34c67437d6699de50766b885705e8ed7f934b.tar.gz |
Make fingerd(8) WARNS2 clean.
Diffstat (limited to 'libexec/fingerd')
-rw-r--r-- | libexec/fingerd/Makefile | 1 | ||||
-rw-r--r-- | libexec/fingerd/fingerd.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/libexec/fingerd/Makefile b/libexec/fingerd/Makefile index dc3f1ab..ae92564 100644 --- a/libexec/fingerd/Makefile +++ b/libexec/fingerd/Makefile @@ -5,6 +5,7 @@ PROG= fingerd DPADD= ${LIBUTIL} LDADD= -lutil MAN= fingerd.8 +WARNS?= 2 WFORMAT=0 diff --git a/libexec/fingerd/fingerd.c b/libexec/fingerd/fingerd.c index 85fda51..9a28933 100644 --- a/libexec/fingerd/fingerd.c +++ b/libexec/fingerd/fingerd.c @@ -170,7 +170,7 @@ main(int argc, char *argv[]) lp = NULL; } - if (lp = strrchr(prog, '/')) + if ((lp = strrchr(prog, '/')) != NULL) *comp = ++lp; else *comp = prog; |