Make build with WARNS=5.
This commit is contained in:
parent
177d48051f
commit
e371117863
|
@ -1,6 +1,7 @@
|
|||
# from: @(#)Makefile 8.1 (Berkeley) 6/4/93
|
||||
# $NetBSD: Makefile,v 1.15 2019/10/13 07:28:20 mrg Exp $
|
||||
# $NetBSD: Makefile,v 1.16 2022/09/03 07:45:08 tsutsui Exp $
|
||||
|
||||
WARNS?= 5
|
||||
USE_FORT?= yes # network server
|
||||
|
||||
PROG= rbootd
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bpf.c,v 1.21 2018/01/23 21:06:25 sevan Exp $ */
|
||||
/* $NetBSD: bpf.c,v 1.22 2022/09/03 07:45:08 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1992 The University of Utah and the Center
|
||||
|
@ -47,7 +47,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)bpf.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: bpf.c,v 1.21 2018/01/23 21:06:25 sevan Exp $");
|
||||
__RCSID("$NetBSD: bpf.c,v 1.22 2022/09/03 07:45:08 tsutsui Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -88,7 +88,7 @@ static u_int8_t *BpfPkt = NULL;
|
|||
** If an error is encountered, the program terminates here.
|
||||
*/
|
||||
int
|
||||
BpfOpen()
|
||||
BpfOpen(void)
|
||||
{
|
||||
struct ifreq ifr;
|
||||
u_int bufsize = 32768;
|
||||
|
@ -368,7 +368,7 @@ BpfWrite(RMPCONN *rconn)
|
|||
** None.
|
||||
*/
|
||||
void
|
||||
BpfClose()
|
||||
BpfClose(void)
|
||||
{
|
||||
struct ifreq ifr;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: parseconf.c,v 1.12 2018/01/23 21:06:25 sevan Exp $ */
|
||||
/* $NetBSD: parseconf.c,v 1.13 2022/09/03 07:45:08 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1992 The University of Utah and the Center
|
||||
|
@ -47,7 +47,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)parseconf.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: parseconf.c,v 1.12 2018/01/23 21:06:25 sevan Exp $");
|
||||
__RCSID("$NetBSD: parseconf.c,v 1.13 2022/09/03 07:45:08 tsutsui Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -81,7 +81,7 @@ __RCSID("$NetBSD: parseconf.c,v 1.12 2018/01/23 21:06:25 sevan Exp $");
|
|||
** to create a linked list of default boot files.
|
||||
*/
|
||||
int
|
||||
ParseConfig()
|
||||
ParseConfig(void)
|
||||
{
|
||||
FILE *fp;
|
||||
CLIENT *client;
|
||||
|
@ -309,7 +309,7 @@ ParseAddr(char *str)
|
|||
** called to re-order its list of boot file pointers.
|
||||
*/
|
||||
int
|
||||
GetBootFiles()
|
||||
GetBootFiles(void)
|
||||
{
|
||||
DIR *dfd;
|
||||
struct stat statb;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: utils.c,v 1.18 2018/01/23 21:06:25 sevan Exp $ */
|
||||
/* $NetBSD: utils.c,v 1.19 2022/09/03 07:45:08 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1992 The University of Utah and the Center
|
||||
|
@ -47,7 +47,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)utils.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: utils.c,v 1.18 2018/01/23 21:06:25 sevan Exp $");
|
||||
__RCSID("$NetBSD: utils.c,v 1.19 2022/09/03 07:45:08 tsutsui Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -302,7 +302,7 @@ NewClient(u_int8_t *addr)
|
|||
** - This routine must be called with SIGHUP blocked.
|
||||
*/
|
||||
void
|
||||
FreeClients()
|
||||
FreeClients(void)
|
||||
{
|
||||
CLIENT *ctmp;
|
||||
|
||||
|
@ -434,7 +434,7 @@ FreeConn(RMPCONN *rtmp)
|
|||
** - This routine must be called with SIGHUP blocked.
|
||||
*/
|
||||
void
|
||||
FreeConns()
|
||||
FreeConns(void)
|
||||
{
|
||||
RMPCONN *rtmp;
|
||||
|
||||
|
|
Loading…
Reference in New Issue