Make fingerd(8) WARNS2 clean.

This commit is contained in:
Pawel Jakub Dawidek 2004-03-29 09:29:51 +00:00
parent a20a3464f5
commit ece20938e5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127560
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ PROG= fingerd
DPADD= ${LIBUTIL}
LDADD= -lutil
MAN= fingerd.8
WARNS?= 2
WFORMAT=0

View File

@ -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;