diff options
| author | Mark Murray <markm@FreeBSD.org> | 2002-02-03 11:36:59 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2002-02-03 11:36:59 +0000 |
| commit | dc20def49240513af5af96c4ed52c670145cf0d5 (patch) | |
| tree | 69f659e7bd6b08ff722c063c83656db6637fd607 | |
| parent | 9a29e3250ddbdb3a2b6187c77f77bf42be1ada9c (diff) | |
Notes
| -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 5fc5572ffc14..2fce108cc468 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 0477a24c0a20..1369a965ee05 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 { |
