Warns cleanups.
This commit is contained in:
parent
fc0ee8a40b
commit
81ff03de25
@ -1,6 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= lockf
|
||||
CFLAGS+=-Wall
|
||||
WARNS?= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -193,7 +193,7 @@ killed(int sig)
|
||||
* Signal handler for SIGALRM.
|
||||
*/
|
||||
static void
|
||||
timeout(int sig)
|
||||
timeout(int sig __unused)
|
||||
{
|
||||
timed_out = 1;
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= mktemp
|
||||
WARNS?= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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;
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
PROG= ncplogin
|
||||
MAN= ncplogin.1 ncplogout.1
|
||||
WARNS?= 2
|
||||
|
||||
LINKS= ${BINDIR}/ncplogin ${BINDIR}/ncplogout
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user