summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2018-04-08 20:57:29 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2018-04-08 20:57:29 +0000
commit937913e2de4612c0532e049f14f15cf7b0b655af (patch)
tree4a21ae688f968f4da8493849b3d30b1df373b850 /lib
parentfcec641ff2200389a9fc6c27bdea89ca257b8efe (diff)
Cast -1 to (unsigned long) to appease clang 6 -Wc++11-narrowing
Fixes at least ports/archivers/fuse-zip. ok millert@
Diffstat (limited to 'lib')
-rw-r--r--lib/libfuse/fuse_opt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfuse/fuse_opt.h b/lib/libfuse/fuse_opt.h
index a042ef8bcd6..ddf173b1933 100644
--- a/lib/libfuse/fuse_opt.h
+++ b/lib/libfuse/fuse_opt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fuse_opt.h,v 1.4 2014/05/20 13:22:06 syl Exp $ */
+/* $OpenBSD: fuse_opt.h,v 1.5 2018/04/08 20:57:28 jca Exp $ */
/*
* Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
@@ -48,7 +48,7 @@ int fuse_opt_parse(struct fuse_args *, void *, const struct fuse_opt *,
#define FUSE_OPT_IS_OPT_KEY(t) (t->off == (unsigned long)-1)
-#define FUSE_OPT_KEY(t, k) { t, -1, k }
+#define FUSE_OPT_KEY(t, k) { t, (unsigned long)-1, k }
#define FUSE_OPT_END { NULL, 0, 0 }
#define FUSE_OPT_KEY_OPT -1
#define FUSE_OPT_KEY_NONOPT -2