diff options
-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 { |