Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/rbootd Make build with WARNS=5.
details: https://anonhg.NetBSD.org/src/rev/db72a3a007f7
branches: trunk
changeset: 369841:db72a3a007f7
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Sep 03 07:45:08 2022 +0000
description:
Make build with WARNS=5.
diffstat:
usr.sbin/rbootd/Makefile | 3 ++-
usr.sbin/rbootd/bpf.c | 8 ++++----
usr.sbin/rbootd/parseconf.c | 8 ++++----
usr.sbin/rbootd/utils.c | 8 ++++----
4 files changed, 14 insertions(+), 13 deletions(-)
diffs (120 lines):
diff -r 43f911581f90 -r db72a3a007f7 usr.sbin/rbootd/Makefile
--- a/usr.sbin/rbootd/Makefile Sat Sep 03 04:54:47 2022 +0000
+++ b/usr.sbin/rbootd/Makefile Sat Sep 03 07:45:08 2022 +0000
@@ -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
diff -r 43f911581f90 -r db72a3a007f7 usr.sbin/rbootd/bpf.c
--- a/usr.sbin/rbootd/bpf.c Sat Sep 03 04:54:47 2022 +0000
+++ b/usr.sbin/rbootd/bpf.c Sat Sep 03 07:45:08 2022 +0000
@@ -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 @@
** If an error is encountered, the program terminates here.
*/
int
-BpfOpen()
+BpfOpen(void)
{
struct ifreq ifr;
u_int bufsize = 32768;
@@ -368,7 +368,7 @@
** None.
*/
void
-BpfClose()
+BpfClose(void)
{
struct ifreq ifr;
diff -r 43f911581f90 -r db72a3a007f7 usr.sbin/rbootd/parseconf.c
--- a/usr.sbin/rbootd/parseconf.c Sat Sep 03 04:54:47 2022 +0000
+++ b/usr.sbin/rbootd/parseconf.c Sat Sep 03 07:45:08 2022 +0000
@@ -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 @@
** to create a linked list of default boot files.
*/
int
-ParseConfig()
+ParseConfig(void)
{
FILE *fp;
CLIENT *client;
@@ -309,7 +309,7 @@
** called to re-order its list of boot file pointers.
*/
int
-GetBootFiles()
+GetBootFiles(void)
{
DIR *dfd;
struct stat statb;
diff -r 43f911581f90 -r db72a3a007f7 usr.sbin/rbootd/utils.c
--- a/usr.sbin/rbootd/utils.c Sat Sep 03 04:54:47 2022 +0000
+++ b/usr.sbin/rbootd/utils.c Sat Sep 03 07:45:08 2022 +0000
@@ -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 @@
** - This routine must be called with SIGHUP blocked.
*/
void
-FreeClients()
+FreeClients(void)
{
CLIENT *ctmp;
@@ -434,7 +434,7 @@
** - This routine must be called with SIGHUP blocked.
*/
void
-FreeConns()
+FreeConns(void)
{
RMPCONN *rtmp;
Home |
Main Index |
Thread Index |
Old Index