From 04fee6848cfe827855aa4ecd7f0a9da7d173e4d1 Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 8 Feb 2023 08:20:53 +0000 Subject: [PATCH] usr.sbin: missing void to appease clang 15's -Wstrict-prototype. --- usr.sbin/dhcpd/pfutils.c | 4 ++-- usr.sbin/ospfd/kroute.c | 4 ++-- usr.sbin/sasyncd/carp.c | 4 ++-- usr.sbin/smtpd/bounce.c | 4 ++-- usr.sbin/smtpd/ioev.c | 4 ++-- usr.sbin/smtpd/mda.c | 6 +++--- usr.sbin/smtpd/smtpd.c | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/usr.sbin/dhcpd/pfutils.c b/usr.sbin/dhcpd/pfutils.c index b0d848c2829..975736c0327 100644 --- a/usr.sbin/dhcpd/pfutils.c +++ b/usr.sbin/dhcpd/pfutils.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfutils.c,v 1.23 2021/10/24 21:24:18 deraadt Exp $ */ +/* $OpenBSD: pfutils.c,v 1.24 2023/02/08 08:20:53 tb Exp $ */ /* * Copyright (c) 2006 Chris Kuethe * @@ -46,7 +46,7 @@ extern char *changedmac_tab; extern char *leased_tab; __dead void -pftable_handler() +pftable_handler(void) { struct pf_cmd cmd; struct pollfd pfd[1]; diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c index 8ba5855a416..db7bcd74c9d 100644 --- a/usr.sbin/ospfd/kroute.c +++ b/usr.sbin/ospfd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.115 2022/05/06 15:51:09 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.116 2023/02/08 08:20:54 tb Exp $ */ /* * Copyright (c) 2004 Esben Norby @@ -409,7 +409,7 @@ kr_fib_reload_arm_timer(int delay) } void -kr_fib_reload() +kr_fib_reload(void) { struct kroute_node *krn, *kr, *kn; diff --git a/usr.sbin/sasyncd/carp.c b/usr.sbin/sasyncd/carp.c index ae18c5593e7..ea35db196bb 100644 --- a/usr.sbin/sasyncd/carp.c +++ b/usr.sbin/sasyncd/carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: carp.c,v 1.17 2019/01/22 09:25:29 krw Exp $ */ +/* $OpenBSD: carp.c,v 1.18 2023/02/08 08:20:54 tb Exp $ */ /* * Copyright (c) 2005 HÃ¥kan Olsson. All rights reserved. @@ -181,7 +181,7 @@ carp_update_state(enum RUNSTATE current_state) } void -carp_check_state() +carp_check_state(void) { carp_update_state(carp_get_state(cfgstate.carp_ifname)); } diff --git a/usr.sbin/smtpd/bounce.c b/usr.sbin/smtpd/bounce.c index 5d0dad68698..6028cbc5193 100644 --- a/usr.sbin/smtpd/bounce.c +++ b/usr.sbin/smtpd/bounce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bounce.c,v 1.86 2021/07/28 19:39:50 benno Exp $ */ +/* $OpenBSD: bounce.c,v 1.87 2023/02/08 08:20:54 tb Exp $ */ /* * Copyright (c) 2009 Gilles Chehade @@ -236,7 +236,7 @@ bounce_timeout(int fd, short ev, void *arg) } static void -bounce_drain() +bounce_drain(void) { struct bounce_message *msg; struct timeval tv; diff --git a/usr.sbin/smtpd/ioev.c b/usr.sbin/smtpd/ioev.c index 31cb8746e02..da06a404fe5 100644 --- a/usr.sbin/smtpd/ioev.c +++ b/usr.sbin/smtpd/ioev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ioev.c,v 1.48 2021/06/14 17:58:15 eric Exp $ */ +/* $OpenBSD: ioev.c,v 1.49 2023/02/08 08:20:54 tb Exp $ */ /* * Copyright (c) 2012 Eric Faurot * @@ -224,7 +224,7 @@ io_frame_leave(struct io *io) } void -_io_init() +_io_init(void) { static int init = 0; diff --git a/usr.sbin/smtpd/mda.c b/usr.sbin/smtpd/mda.c index e347c68af34..edfd9886052 100644 --- a/usr.sbin/smtpd/mda.c +++ b/usr.sbin/smtpd/mda.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mda.c,v 1.143 2021/06/14 17:58:15 eric Exp $ */ +/* $OpenBSD: mda.c,v 1.144 2023/02/08 08:20:54 tb Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -370,12 +370,12 @@ mda_imsg(struct mproc *p, struct imsg *imsg) } void -mda_postfork() +mda_postfork(void) { } void -mda_postprivdrop() +mda_postprivdrop(void) { tree_init(&sessions); tree_init(&users); diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index 636c898f803..5949ce05522 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.343 2022/02/18 16:57:36 millert Exp $ */ +/* $OpenBSD: smtpd.c,v 1.344 2023/02/08 08:20:54 tb Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -308,7 +308,7 @@ parent_send_config_dispatcher(void) } void -parent_send_config_lka() +parent_send_config_lka(void) { log_debug("debug: parent_send_config_ruleset: reloading"); m_compose(p_lka, IMSG_CONF_START, 0, 0, -1, NULL, 0); -- 2.20.1