Warns cleanups.

This commit is contained in:
dwmalone 2001-12-03 21:07:23 +00:00
parent fc0ee8a40b
commit 81ff03de25
6 changed files with 8 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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