diff options
author | markm <markm@FreeBSD.org> | 2002-02-03 11:36:59 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-02-03 11:36:59 +0000 |
commit | 08c0b74dd59e51ffeffadf02915c9d0f243d00b4 (patch) | |
tree | 69f659e7bd6b08ff722c063c83656db6637fd607 /sys | |
parent | f1276b12a4ae322e574f7b4ab9ccacca72ca9cb0 (diff) | |
download | FreeBSD-src-08c0b74dd59e51ffeffadf02915c9d0f243d00b4.zip FreeBSD-src-08c0b74dd59e51ffeffadf02915c9d0f243d00b4.tar.gz |
Zero functional difference; make some integer constants unsigned, as
they are used in unsigned context. This shuts lint(1) up in a few
significant ways with "signed/unsigned" arithmetic warnings.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/socket.h | 2 | ||||
-rw-r--r-- | sys/sys/types.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h index 5fc5572..2fce108 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -179,7 +179,7 @@ struct sockproto { /* * RFC 2553: protocol-independent placeholder for socket addresses */ -#define _SS_MAXSIZE 128 +#define _SS_MAXSIZE 128U #define _SS_ALIGNSIZE (sizeof(int64_t)) #define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(u_char) - sizeof(sa_family_t)) #define _SS_PAD2SIZE (_SS_MAXSIZE - sizeof(u_char) - sizeof(sa_family_t) - \ diff --git a/sys/sys/types.h b/sys/sys/types.h index 0477a24..1369a96 100644 --- a/sys/sys/types.h +++ b/sys/sys/types.h @@ -171,7 +171,7 @@ typedef _BSD_TIMER_T_ timer_t; #endif #ifndef _POSIX_SOURCE -#define NBBY 8 /* number of bits in a byte */ +#define NBBY 8U /* number of bits in a byte */ /* * Select uses bit masks of file descriptors in longs. These macros @@ -180,14 +180,14 @@ typedef _BSD_TIMER_T_ timer_t; * be enough for most uses. */ #ifndef FD_SETSIZE -#define FD_SETSIZE 1024 +#define FD_SETSIZE 1024U #endif typedef unsigned long fd_mask; #define NFDBITS (sizeof(fd_mask) * NBBY) /* bits per mask */ #ifndef howmany -#define howmany(x, y) (((x) + ((y) - 1)) / (y)) +#define howmany(x, y) (((x) + ((y) - 1U)) / (y)) #endif typedef struct fd_set { |