diff options
author | jraynard <jraynard@FreeBSD.org> | 1996-06-10 20:13:09 +0000 |
---|---|---|
committer | jraynard <jraynard@FreeBSD.org> | 1996-06-10 20:13:09 +0000 |
commit | 0e3efc7987c3d214da05c649e00c7f72620a96bd (patch) | |
tree | 3a4e1682ef16b142e099c2139c0dbb40e61347ee /lib/libc/rpc/pmap_prot2.c | |
parent | 68b3f1ce70e0dec9ed0b3454f40628b409196f2d (diff) | |
download | FreeBSD-src-0e3efc7987c3d214da05c649e00c7f72620a96bd.zip FreeBSD-src-0e3efc7987c3d214da05c649e00c7f72620a96bd.tar.gz |
Code cleanup:
1. Added missing function prototypes.
2. Added missing function return types.
3. Added missing function argument types.
4. Added missing headers for system function prototypes.
5. Corrected format specifier in printf().
6. Added extra parentheses around assignment used as truth value.
7. Added missing "default" cases in switch statements.
8. Added casts for function pointers.
9. Did *not* change int declarations of uid and gid to uid_t/gid_t
because I don't know if that would affect the protocol. Put in
explicit casts to int instead, to make things more obvious.
10. Moved declarations of variables that are only used if YP is
defined inside the '#ifdef YP' conditionals.
Diffstat (limited to 'lib/libc/rpc/pmap_prot2.c')
-rw-r--r-- | lib/libc/rpc/pmap_prot2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/pmap_prot2.c b/lib/libc/rpc/pmap_prot2.c index 5e937ed..2f2a9a0 100644 --- a/lib/libc/rpc/pmap_prot2.c +++ b/lib/libc/rpc/pmap_prot2.c @@ -30,7 +30,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)pmap_prot2.c 1.3 87/08/11 Copyr 1984 Sun Micro";*/ /*static char *sccsid = "from: @(#)pmap_prot2.c 2.1 88/07/29 4.0 RPCSRC";*/ -static char *rcsid = "$Id: pmap_prot2.c,v 1.1 1994/08/07 18:35:57 wollman Exp $"; +static char *rcsid = "$Id: pmap_prot2.c,v 1.2 1995/05/30 05:41:26 rgrimes Exp $"; #endif /* @@ -95,7 +95,7 @@ xdr_pmaplist(xdrs, rp) */ bool_t more_elements; register int freeing = (xdrs->x_op == XDR_FREE); - register struct pmaplist **next; + register struct pmaplist **next = NULL; while (TRUE) { more_elements = (bool_t)(*rp != NULL); |