From 3fd25667abc8e8fb3cefa3131ba3413e58b3c0df Mon Sep 17 00:00:00 2001 From: krw Date: Tue, 17 Jul 2018 07:43:34 +0000 Subject: [PATCH] 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. --- sys/kern/kern_unveil.c | 4 ++-- 1 file 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 @@ -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); -- 2.20.1