unwind: add two missing void to function definitions
authortb <tb@openbsd.org>
Wed, 8 Feb 2023 08:01:25 +0000 (08:01 +0000)
committertb <tb@openbsd.org>
Wed, 8 Feb 2023 08:01:25 +0000 (08:01 +0000)
Silences -Wstrict-prototype warnings seen with clang 15 on amd64 and arm64.

ok florian

sbin/unwind/frontend.c
sbin/unwind/resolver.c

index e757885..20061e6 100644 (file)
@@ -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 <florian@openbsd.org>
@@ -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;
index 9bcb44c..7161423 100644 (file)
@@ -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;