From: tb Date: Wed, 8 Feb 2023 08:01:25 +0000 (+0000) Subject: unwind: add two missing void to function definitions X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c16f5ec72ba6a6940ef703ce4d292f884c81cf8d;p=openbsd unwind: add two missing void to function definitions Silences -Wstrict-prototype warnings seen with clang 15 on amd64 and arm64. ok florian --- 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;