Module Name:src
Committed By: tsutsui
Date: Sat Sep 3 07:45:08 UTC 2022
Modified Files:
src/usr.sbin/rbootd: Makefile bpf.c parseconf.c utils.c
Log Message:
Make build with WARNS=5.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/rbootd/Makefile
cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/rbootd/bpf.c
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/rbootd/parseconf.c
cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/rbootd/utils.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/rbootd/Makefile
diff -u src/usr.sbin/rbootd/Makefile:1.15 src/usr.sbin/rbootd/Makefile:1.16
--- src/usr.sbin/rbootd/Makefile:1.15 Sun Oct 13 07:28:20 2019
+++ src/usr.sbin/rbootd/Makefile Sat Sep 3 07:45:08 2022
@@ -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
Index: src/usr.sbin/rbootd/bpf.c
diff -u src/usr.sbin/rbootd/bpf.c:1.21 src/usr.sbin/rbootd/bpf.c:1.22
--- src/usr.sbin/rbootd/bpf.c:1.21 Tue Jan 23 21:06:25 2018
+++ src/usr.sbin/rbootd/bpf.c Sat Sep 3 07:45:08 2022
@@ -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;
Index: src/usr.sbin/rbootd/parseconf.c
diff -u src/usr.sbin/rbootd/parseconf.c:1.12 src/usr.sbin/rbootd/parseconf.c:1.13
--- src/usr.sbin/rbootd/parseconf.c:1.12 Tue Jan 23 21:06:25 2018
+++ src/usr.sbin/rbootd/parseconf.c Sat Sep 3 07:45:08 2022
@@ -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 201
** 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;
Index: src/usr.sbin/rbootd/utils.c
diff -u src/usr.sbin/rbootd/utils.c:1.18 src/usr.sbin/rbootd/utils.c:1.19
--- src/usr.sbin/rbootd/utils.c:1.18 Tue Jan 23 21:06:25 2018
+++ src/usr.sbin/rbootd/utils.c Sat Sep 3 07:45:08 2022
@@ -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;