diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-11-24 10:04:07 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-11-24 10:04:07 +0000 |
commit | fd693488278f201b34a8ce0d081da54e99a8dca2 (patch) | |
tree | 0d6aa7fd88cad5849cfd2f410512285026d69858 | |
parent | 729868c9df13ea5c2a910ba353ba2e9f97e55a29 (diff) |
Use our exact size types instead of char/long
-rw-r--r-- | sys/netinet/ip_cast.c | 3 | ||||
-rw-r--r-- | sys/netinet/ip_cast.h | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sys/netinet/ip_cast.c b/sys/netinet/ip_cast.c index 0c6009c4267..af565c5041c 100644 --- a/sys/netinet/ip_cast.c +++ b/sys/netinet/ip_cast.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_cast.c,v 1.1 1997/11/04 09:11:05 provos Exp $ */ +/* $OpenBSD: ip_cast.c,v 1.2 1998/11/24 10:04:06 niklas Exp $ */ /* * CAST-128 in C * Written by Steve Reid <sreid@sea-to-sky.net> @@ -6,6 +6,7 @@ * Released 1997.10.11 */ +#include <sys/types.h> #include <netinet/ip_cast.h> #include <netinet/ip_castsb.h> diff --git a/sys/netinet/ip_cast.h b/sys/netinet/ip_cast.h index 215cc0193e3..ea50b5fe207 100644 --- a/sys/netinet/ip_cast.h +++ b/sys/netinet/ip_cast.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_cast.h,v 1.1 1997/11/04 09:11:06 provos Exp $ */ +/* $OpenBSD: ip_cast.h,v 1.2 1998/11/24 10:04:06 niklas Exp $ */ /* * CAST-128 in C * Written by Steve Reid <sreid@sea-to-sky.net> @@ -9,8 +9,8 @@ #ifndef _CAST_H_ #define _CAST_H_ -typedef unsigned char u8; /* 8-bit unsigned */ -typedef unsigned long u32; /* 32-bit unsigned */ +typedef u_int8_t u8; /* 8-bit unsigned */ +typedef u_int32_t u32; /* 32-bit unsigned */ typedef struct { u32 xkey[32]; /* Key, after expansion */ |