Module Name: src
Committed By: martin
Date: Thu Apr 30 15:12:25 UTC 2020
Modified Files:
src/usr.bin/kdump: kdump.c
Log Message:
futexput: cast the mask to u_long (as the op already is)
To generate a diff of this commit:
cvs rdiff -u -r1.138 -r1.139 src/usr.bin/kdump/kdump.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/kdump/kdump.c
diff -u src/usr.bin/kdump/kdump.c:1.138 src/usr.bin/kdump/kdump.c:1.139
--- src/usr.bin/kdump/kdump.c:1.138 Thu Apr 30 12:17:01 2020
+++ src/usr.bin/kdump/kdump.c Thu Apr 30 15:12:25 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: kdump.c,v 1.138 2020/04/30 12:17:01 thorpej Exp $ */
+/* $NetBSD: kdump.c,v 1.139 2020/04/30 15:12:25 martin Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 19
#if 0
static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: kdump.c,v 1.138 2020/04/30 12:17:01 thorpej Exp $");
+__RCSID("$NetBSD: kdump.c,v 1.139 2020/04/30 15:12:25 martin Exp $");
#endif
#endif /* not lint */
@@ -661,7 +661,7 @@ futexput(u_long op)
const char *s = "";
if (opname == NULL) {
- printf("%#lx", op & FUTEX_CMD_MASK);
+ printf("%#lx", op & (u_long)FUTEX_CMD_MASK);
} else {
fputs(opname, stdout);
}