summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2021-12-15 20:41:29 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2021-12-15 20:41:29 +0000
commit792780d56d7664f56325e4049e06f284efea3ac2 (patch)
tree2aa813478e23a278504321a28c79315897e68df7 /regress/sys
parent764cf2c7715b685f8c823c4273824c376fa43341 (diff)
Fix compiler warning.
ok mvs@
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/kern/unixsockets/unixsock_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sys/kern/unixsockets/unixsock_test.c b/regress/sys/kern/unixsockets/unixsock_test.c
index b8503a769f4..7c91660c1a6 100644
--- a/regress/sys/kern/unixsockets/unixsock_test.c
+++ b/regress/sys/kern/unixsockets/unixsock_test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unixsock_test.c,v 1.1 2021/12/14 15:57:57 mvs Exp $ */
+/* $OpenBSD: unixsock_test.c,v 1.2 2021/12/15 20:41:28 bluhm Exp $ */
/* Written by Claudio Jeker in 2011 */
/* Public domain */
#include <sys/types.h>
@@ -16,7 +16,7 @@
char path[1024];
char *dir;
-int
+static int
test_bind(struct sockaddr_un *sun, socklen_t slen)
{
int s, e, r;
@@ -34,7 +34,7 @@ test_bind(struct sockaddr_un *sun, socklen_t slen)
return r;
}
-int
+static int
test_connect(struct sockaddr_un *sun, socklen_t slen, struct sockaddr_un *b)
{
int s, s2, e, r;