diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-01 17:00:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-01 17:00:41 +0000 |
commit | 173d01b7c1e9a5d7ba5a6c696a8019061dc41bda (patch) | |
tree | 8c8b7bb08108dca24afcee3bbe301e8ba6f76e81 /sys/lib/libsa/rpc.c | |
parent | 3e42965de9054a39afc4957c4f099218e709ae51 (diff) |
strcpy/strcat/sprintf removal in all bootblocks. various testing by
various people. outside of some messy things in src/gnu, only one
thing in the main tree now violates this rule: bind
Diffstat (limited to 'sys/lib/libsa/rpc.c')
-rw-r--r-- | sys/lib/libsa/rpc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/lib/libsa/rpc.c b/sys/lib/libsa/rpc.c index 8fa05ae902c..35b692bc38f 100644 --- a/sys/lib/libsa/rpc.c +++ b/sys/lib/libsa/rpc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc.c,v 1.11 2002/03/14 01:27:07 millert Exp $ */ +/* $OpenBSD: rpc.c,v 1.12 2003/06/01 17:00:33 deraadt Exp $ */ /* $NetBSD: rpc.c,v 1.16 1996/10/13 02:29:06 christos Exp $ */ /* @@ -62,7 +62,7 @@ #include "rpc.h" struct auth_info { - int32_t authtype; /* auth type */ + int32_t authtype; /* auth type */ u_int32_t authlen; /* auth length */ }; @@ -76,7 +76,7 @@ struct auth_unix { struct rpc_call { u_int32_t rp_xid; /* request transaction id */ - int32_t rp_direction; /* call direction (0) */ + int32_t rp_direction; /* call direction (0) */ u_int32_t rp_rpcvers; /* rpc version (2) */ u_int32_t rp_prog; /* program */ u_int32_t rp_vers; /* version */ @@ -85,8 +85,8 @@ struct rpc_call { struct rpc_reply { u_int32_t rp_xid; /* request transaction id */ - int32_t rp_direction; /* call direction (1) */ - int32_t rp_astatus; /* accept status (0: accepted) */ + int32_t rp_direction; /* call direction (1) */ + int32_t rp_astatus; /* accept status (0: accepted) */ union { u_int32_t rpu_errno; struct { @@ -321,7 +321,7 @@ struct pmap_list { struct in_addr addr; /* server, net order */ u_int prog; /* host order */ u_int vers; /* host order */ - int port; /* host order */ + int port; /* host order */ } rpc_pmap_list[PMAP_NUM]; /* return port number in host order, or -1 */ @@ -348,7 +348,7 @@ rpc_pmap_putcache(addr, prog, vers, port) struct in_addr addr; /* server, net order */ u_int prog; /* host order */ u_int vers; /* host order */ - int port; /* host order */ + int port; /* host order */ { struct pmap_list *pl; |