summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-12-03 21:07:23 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-12-03 21:07:23 +0000
commit81ff03de2599ea78cafdde0adb335d55ca2d5304 (patch)
treed23d4593bd65c58df56697336b0722824dea97fd /usr.bin
parentfc0ee8a40b954c0928df0016d1dcca54a30433bd (diff)
downloadFreeBSD-src-81ff03de2599ea78cafdde0adb335d55ca2d5304.zip
FreeBSD-src-81ff03de2599ea78cafdde0adb335d55ca2d5304.tar.gz
Warns cleanups.
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 77d89c4..b0df209 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 0a91048..6c08ff9 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 76ebee6..b4d6a2f 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 3fe079f..d20ca3d 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 8795f29..a2473b7 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 3841dcc..3302473 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);
}
OpenPOWER on IntegriCloud