Warns cleanups.
This commit is contained in:
parent
1627c04d8c
commit
9ff5e898db
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87290
@ -1,6 +1,6 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PROG= lockf
|
PROG= lockf
|
||||||
CFLAGS+=-Wall
|
WARNS?= 2
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PROG= mktemp
|
PROG= mktemp
|
||||||
|
WARNS?= 2
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user