aboutsummaryrefslogtreecommitdiff
path: root/include/rpc/types.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1996-12-30 13:59:41 +0000
committerPeter Wemm <peter@FreeBSD.org>1996-12-30 13:59:41 +0000
commit70de0abf48ea2d832e3445406155b521792b6d13 (patch)
treee54774aa0d272e74f219465c79c216b63e03c952 /include/rpc/types.h
parent8c675e8051700aa734f0c9693c17c0c60bb38eb3 (diff)
downloadsrc-70de0abf48ea2d832e3445406155b521792b6d13.tar.gz
src-70de0abf48ea2d832e3445406155b521792b6d13.zip
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.
Notes
Notes: svn path=/head/; revision=21059
Diffstat (limited to 'include/rpc/types.h')
-rw-r--r--include/rpc/types.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/rpc/types.h b/include/rpc/types.h
index dd8b3fbd3f7e..631705121b5f 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 */