Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys make __sigmask unsigned
details: https://anonhg.NetBSD.org/src/rev/c9dc07626295
branches: trunk
changeset: 350484:c9dc07626295
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 12 18:29:14 2017 +0000
description:
make __sigmask unsigned
diffstat:
sys/sys/sigtypes.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r a88338e565e9 -r c9dc07626295 sys/sys/sigtypes.h
--- a/sys/sys/sigtypes.h Thu Jan 12 18:26:08 2017 +0000
+++ b/sys/sys/sigtypes.h Thu Jan 12 18:29:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sigtypes.h,v 1.10 2012/02/19 21:07:00 rmind Exp $ */
+/* $NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -64,7 +64,7 @@
/*
* Macro for manipulating signal masks.
*/
-#define __sigmask(n) (1 << (((unsigned int)(n) - 1) & 31))
+#define __sigmask(n) (1U << (((unsigned int)(n) - 1) & 31))
#define __sigword(n) (((unsigned int)(n) - 1) >> 5)
#define __sigaddset(s, n) ((s)->__bits[__sigword(n)] |= __sigmask(n))
#define __sigdelset(s, n) ((s)->__bits[__sigword(n)] &= ~__sigmask(n))
Home |
Main Index |
Thread Index |
Old Index