summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2018-07-17 07:43:34 +0000
committerkrw <krw@openbsd.org>2018-07-17 07:43:34 +0000
commit3fd25667abc8e8fb3cefa3131ba3413e58b3c0df (patch)
tree473742fdb2539b61e099938250e9673eb4d3b901
parentSwitch to MSG_PROTOCOL_BGP4MP_ET formats for update and state mrt messages. (diff)
downloadwireguard-openbsd-3fd25667abc8e8fb3cefa3131ba3413e58b3c0df.tar.xz
wireguard-openbsd-3fd25667abc8e8fb3cefa3131ba3413e58b3c0df.zip
unvname_new() is passed something that is always 64-bits so the
parameter should be declared uint64_t and not int. From & for semarie@ who isn't committing at the moment and ok beck@ who is on the road.
-rw-r--r--sys/kern/kern_unveil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_unveil.c b/sys/kern/kern_unveil.c
index b40a9d5ed53..e52f912c51a 100644
--- a/sys/kern/kern_unveil.c
+++ b/sys/kern/kern_unveil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_unveil.c,v 1.2 2018/07/13 13:47:41 jsg Exp $ */
+/* $OpenBSD: kern_unveil.c,v 1.3 2018/07/17 07:43:34 krw Exp $ */
/*
* Copyright (c) 2017-2018 Bob Beck <beck@openbsd.org>
@@ -50,7 +50,7 @@ unvname_compare(const struct unvname *n1, const struct unvname *n2)
}
struct unvname *
-unvname_new(const char *name, size_t size, int flags)
+unvname_new(const char *name, size_t size, uint64_t flags)
{
struct unvname *ret = malloc(sizeof(struct unvname), M_PROC, M_WAITOK);
ret->un_name = malloc(size, M_PROC, M_WAITOK);