diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-07-17 07:43:35 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-07-17 07:43:35 +0000 |
commit | 75dcd6f74f90125c95c95c88317151c835ea201b (patch) | |
tree | db5d551c77ca9a6561443683eea1da07b9e4dc6c /sys/kern/kern_unveil.c | |
parent | c6a1a5f0e09c70c1ae759fab2bae787d5f0659f7 (diff) |
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.
Diffstat (limited to 'sys/kern/kern_unveil.c')
-rw-r--r-- | sys/kern/kern_unveil.c | 4 |
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); |