diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-03-21 08:17:34 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-03-21 08:17:34 +0000 |
commit | b89e4bc68c6851b2ff4ba3333774ff55d1f51663 (patch) | |
tree | a629bf07e08c266641cb67652afb331672bfb39d /sys | |
parent | 0fe995ebad8edfd2ecfec6406e793fcf088f9f01 (diff) |
x << long generates a lint warning, so silence it by casting __NFDBITS
to unsigned; this is a conseqeunce of changing size_t to u_long.
ok deraadt@ millert@ cloder@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/select.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/select.h b/sys/sys/select.h index 1d098a745da..fdabfd9de46 100644 --- a/sys/sys/select.h +++ b/sys/sys/select.h @@ -1,4 +1,4 @@ -/* $OpenBSD: select.h,v 1.8 2005/12/13 00:35:23 millert Exp $ */ +/* $OpenBSD: select.h,v 1.9 2006/03/21 08:17:33 otto Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -53,7 +53,7 @@ */ #define __NBBY 8 /* number of bits in a byte */ typedef int32_t __fd_mask; -#define __NFDBITS (sizeof(__fd_mask) * __NBBY) /* bits per mask */ +#define __NFDBITS ((unsigned)(sizeof(__fd_mask) * __NBBY)) /* bits per mask */ #define __howmany(x, y) (((x) + ((y) - 1)) / (y)) typedef struct fd_set { |