From c16f5ec72ba6a6940ef703ce4d292f884c81cf8d Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 8 Feb 2023 08:01:25 +0000 Subject: [PATCH] unwind: add two missing void to function definitions Silences -Wstrict-prototype warnings seen with clang 15 on amd64 and arm64. ok florian --- sbin/unwind/frontend.c | 4 ++-- sbin/unwind/resolver.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/unwind/frontend.c b/sbin/unwind/frontend.c index e7578852ea3..20061e6f721 100644 --- a/sbin/unwind/frontend.c +++ b/sbin/unwind/frontend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frontend.c,v 1.76 2022/11/27 14:31:22 tb Exp $ */ +/* $OpenBSD: frontend.c,v 1.77 2023/02/08 08:01:25 tb Exp $ */ /* * Copyright (c) 2018 Florian Obser @@ -1760,7 +1760,7 @@ tcp_timeout(int fd, short events, void *arg) } void -check_available_af() +check_available_af(void) { static int available_af = HAVE_IPV4 | HAVE_IPV6; static int rtable = -1; diff --git a/sbin/unwind/resolver.c b/sbin/unwind/resolver.c index 9bcb44c5940..71614237506 100644 --- a/sbin/unwind/resolver.c +++ b/sbin/unwind/resolver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resolver.c,v 1.157 2023/02/07 17:44:02 florian Exp $ */ +/* $OpenBSD: resolver.c,v 1.158 2023/02/08 08:01:25 tb Exp $ */ /* @@ -2221,7 +2221,7 @@ query_imsg2str(struct query_imsg *query_imsg) } char * -gen_resolv_conf() +gen_resolv_conf(void) { struct uw_forwarder *uw_forwarder; char *resolv_conf = NULL, *tmp = NULL; -- 2.20.1