Warns cleanups.

This commit is contained in:
David Malone 2001-12-03 21:07:23 +00:00
parent 1627c04d8c
commit 9ff5e898db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87290
6 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PROG= lockf PROG= lockf
CFLAGS+=-Wall WARNS?= 2
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -193,7 +193,7 @@ killed(int sig)
* Signal handler for SIGALRM. * Signal handler for SIGALRM.
*/ */
static void static void
timeout(int sig) timeout(int sig __unused)
{ {
timed_out = 1; timed_out = 1;
} }

View File

@ -1,5 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PROG= mktemp PROG= mktemp
WARNS?= 2
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -52,7 +52,8 @@ int
main(int argc, char **argv) main(int argc, char **argv)
{ {
int c, fd, ret; int c, fd, ret;
char *tmpdir, *prefix; char *tmpdir;
const char *prefix;
char *name; char *name;
int dflag, qflag, tflag, uflag; int dflag, qflag, tflag, uflag;

View File

@ -2,6 +2,7 @@
PROG= ncplogin PROG= ncplogin
MAN= ncplogin.1 ncplogout.1 MAN= ncplogin.1 ncplogout.1
WARNS?= 2
LINKS= ${BINDIR}/ncplogin ${BINDIR}/ncplogout LINKS= ${BINDIR}/ncplogin ${BINDIR}/ncplogout

View File

@ -47,14 +47,14 @@
extern char *__progname; extern char *__progname;
static void static void
login_usage() { login_usage(void) {
printf("usage: %s [-Dh] [-A host] [-BCN] [-I level] [-M mode] \n" printf("usage: %s [-Dh] [-A host] [-BCN] [-I level] [-M mode] \n"
" [-R retrycount] [-W timeout] /server:user\n", __progname); " [-R retrycount] [-W timeout] /server:user\n", __progname);
exit(1); exit(1);
} }
static void static void
logout_usage() { logout_usage(void) {
printf("usage: %s [-c handle] [-h] [/server:user]\n", __progname); printf("usage: %s [-c handle] [-h] [/server:user]\n", __progname);
exit(1); exit(1);
} }