Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Cast FD_* argument to unsiged, shut ups lint.



details:   https://anonhg.NetBSD.org/src/rev/4d1c08fe4cfb
branches:  trunk
changeset: 756201:4d1c08fe4cfb
user:      rmind <rmind%NetBSD.org@localhost>
date:      Thu Jul 08 18:56:17 2010 +0000

description:
Cast FD_* argument to unsiged, shut ups lint.

diffstat:

 sys/sys/fd_set.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (24 lines):

diff -r a5d2d0340907 -r 4d1c08fe4cfb sys/sys/fd_set.h
--- a/sys/sys/fd_set.h  Thu Jul 08 18:55:42 2010 +0000
+++ b/sys/sys/fd_set.h  Thu Jul 08 18:56:17 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fd_set.h,v 1.4 2010/07/08 13:58:52 rmind Exp $ */
+/*     $NetBSD: fd_set.h,v 1.5 2010/07/08 18:56:17 rmind Exp $ */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -66,11 +66,11 @@
 } fd_set;
 
 #define        FD_SET(n, p)    \
-    ((p)->fds_bits[(n) >> __NFDSHIFT] |= (1 << ((n) & __NFDMASK)))
+    ((p)->fds_bits[(unsigned)(n) >> __NFDSHIFT] |= (1 << ((n) & __NFDMASK)))
 #define        FD_CLR(n, p)    \
-    ((p)->fds_bits[(n) >> __NFDSHIFT] &= ~(1 << ((n) & __NFDMASK)))
+    ((p)->fds_bits[(unsigned)(n) >> __NFDSHIFT] &= ~(1 << ((n) & __NFDMASK)))
 #define        FD_ISSET(n, p)  \
-    ((p)->fds_bits[(n) >> __NFDSHIFT] & (1 << ((n) & __NFDMASK)))
+    ((p)->fds_bits[(unsigned)(n) >> __NFDSHIFT] & (1 << ((n) & __NFDMASK)))
 #if __GNUC_PREREQ__(2, 95)
 #define        FD_ZERO(p)      (void)__builtin_memset((p), 0, sizeof(*(p)))
 #else



Home | Main Index | Thread Index | Old Index