aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2001-12-03 21:07:23 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2001-12-03 21:07:23 +0000
commit9ff5e898db817c903f5ca2a8e31523585f7c33cb (patch)
treed23d4593bd65c58df56697336b0722824dea97fd /usr.bin
parent1627c04d8c1161e010ffa78cc35c5260022ec393 (diff)
downloadsrc-9ff5e898db817c903f5ca2a8e31523585f7c33cb.tar.gz
src-9ff5e898db817c903f5ca2a8e31523585f7c33cb.zip
Warns cleanups.
Notes
Notes: svn path=/head/; revision=87290
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/lockf/Makefile2
-rw-r--r--usr.bin/lockf/lockf.c2
-rw-r--r--usr.bin/mktemp/Makefile1
-rw-r--r--usr.bin/mktemp/mktemp.c3
-rw-r--r--usr.bin/ncplogin/Makefile1
-rw-r--r--usr.bin/ncplogin/ncplogin.c4
6 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/lockf/Makefile b/usr.bin/lockf/Makefile
index 77d89c45bbdf..b0df209a29b9 100644
--- a/usr.bin/lockf/Makefile
+++ b/usr.bin/lockf/Makefile
@@ -1,6 +1,6 @@
# $FreeBSD$
PROG= lockf
-CFLAGS+=-Wall
+WARNS?= 2
.include <bsd.prog.mk>
diff --git a/usr.bin/lockf/lockf.c b/usr.bin/lockf/lockf.c
index 0a91048cafc4..6c08ff91fcc0 100644
--- a/usr.bin/lockf/lockf.c
+++ b/usr.bin/lockf/lockf.c
@@ -193,7 +193,7 @@ killed(int sig)
* Signal handler for SIGALRM.
*/
static void
-timeout(int sig)
+timeout(int sig __unused)
{
timed_out = 1;
}
diff --git a/usr.bin/mktemp/Makefile b/usr.bin/mktemp/Makefile
index 76ebee6f360b..b4d6a2fb9633 100644
--- a/usr.bin/mktemp/Makefile
+++ b/usr.bin/mktemp/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
PROG= mktemp
+WARNS?= 2
.include <bsd.prog.mk>
diff --git a/usr.bin/mktemp/mktemp.c b/usr.bin/mktemp/mktemp.c
index 3fe079f380b7..d20ca3dfcdbb 100644
--- a/usr.bin/mktemp/mktemp.c
+++ b/usr.bin/mktemp/mktemp.c
@@ -52,7 +52,8 @@ int
main(int argc, char **argv)
{
int c, fd, ret;
- char *tmpdir, *prefix;
+ char *tmpdir;
+ const char *prefix;
char *name;
int dflag, qflag, tflag, uflag;
diff --git a/usr.bin/ncplogin/Makefile b/usr.bin/ncplogin/Makefile
index 8795f29f3ad1..a2473b727090 100644
--- a/usr.bin/ncplogin/Makefile
+++ b/usr.bin/ncplogin/Makefile
@@ -2,6 +2,7 @@
PROG= ncplogin
MAN= ncplogin.1 ncplogout.1
+WARNS?= 2
LINKS= ${BINDIR}/ncplogin ${BINDIR}/ncplogout
diff --git a/usr.bin/ncplogin/ncplogin.c b/usr.bin/ncplogin/ncplogin.c
index 3841dcc90321..3302473b0c58 100644
--- a/usr.bin/ncplogin/ncplogin.c
+++ b/usr.bin/ncplogin/ncplogin.c
@@ -47,14 +47,14 @@
extern char *__progname;
static void
-login_usage() {
+login_usage(void) {
printf("usage: %s [-Dh] [-A host] [-BCN] [-I level] [-M mode] \n"
" [-R retrycount] [-W timeout] /server:user\n", __progname);
exit(1);
}
static void
-logout_usage() {
+logout_usage(void) {
printf("usage: %s [-c handle] [-h] [/server:user]\n", __progname);
exit(1);
}