From: beck Date: Fri, 3 Aug 2018 02:36:11 +0000 (+0000) Subject: ni_pledge flags are a uint64_t not an int - don't initialize with an int. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ca1d9e9b4b05a8910ed36515b00e6da9f60bac3a;p=openbsd ni_pledge flags are a uint64_t not an int - don't initialize with an int. --- diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 4c9d575cdda..0fdc307506b 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.299 2018/07/30 17:21:37 anton Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.300 2018/08/03 02:36:11 beck Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -991,7 +991,7 @@ doopenat(struct proc *p, int fd, const char *path, int oflags, mode_t mode, int type, indx, error, localtrunc = 0; struct flock lf; struct nameidata nd; - int ni_pledge = 0; + uint64_t ni_pledge = 0; if (oflags & (O_EXLOCK | O_SHLOCK)) { error = pledge_flock(p);