diff options
author | peter <peter@FreeBSD.org> | 1996-12-30 13:59:41 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-12-30 13:59:41 +0000 |
commit | bd9931aed2cc704a5fee1601e7e88458290fb6a8 (patch) | |
tree | e54774aa0d272e74f219465c79c216b63e03c952 /include/rpc/types.h | |
parent | 7b950e65b2fd7b182f052a13da5c0465fb308334 (diff) | |
download | FreeBSD-src-bd9931aed2cc704a5fee1601e7e88458290fb6a8.zip FreeBSD-src-bd9931aed2cc704a5fee1601e7e88458290fb6a8.tar.gz |
First commit of a series of cleanups for the libc rpc code which has been
suffering a bad case neglect for the last few years.
- Add full prototypes, including to function pointers.
- Make the wire protocols 64-bit type safe, eg: 32 bit quantities are
int32_t, not long. The orginal rpc code was implemented when an int
could be 16 bits.
Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
Diffstat (limited to 'include/rpc/types.h')
-rw-r--r-- | include/rpc/types.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/rpc/types.h b/include/rpc/types.h index dd8b3fb..6317051 100644 --- a/include/rpc/types.h +++ b/include/rpc/types.h @@ -28,7 +28,7 @@ * * from: @(#)types.h 1.18 87/07/24 SMI * from: @(#)types.h 2.3 88/08/15 4.0 RPCSRC - * $Id: types.h,v 1.3 1995/05/30 04:55:35 rgrimes Exp $ + * $Id: types.h,v 1.4 1996/01/30 23:32:39 mpp Exp $ */ /* @@ -37,8 +37,8 @@ #ifndef _RPC_TYPES_H #define _RPC_TYPES_H -#define bool_t int -#define enum_t int +#define bool_t int32_t +#define enum_t int32_t #define __dontcare__ -1 #ifndef FALSE @@ -59,8 +59,4 @@ #endif #include <sys/time.h> -#ifndef INADDR_LOOPBACK -#define INADDR_LOOPBACK (u_long)0x7F000001 -#endif - #endif /* !_RPC_TYPES_H */ |