diff options
author | James Raynard <jraynard@FreeBSD.org> | 1996-06-10 20:13:09 +0000 |
---|---|---|
committer | James Raynard <jraynard@FreeBSD.org> | 1996-06-10 20:13:09 +0000 |
commit | f12d1a5dd0b4ac959f98fc3c418b3f1e6d77bfa6 (patch) | |
tree | 3a4e1682ef16b142e099c2139c0dbb40e61347ee /lib/libc/rpc/clnt_simple.c | |
parent | 1c346c709215b42b13b762c12a256d333b98f1bc (diff) |
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.
Notes
Notes:
svn path=/head/; revision=16283
Diffstat (limited to 'lib/libc/rpc/clnt_simple.c')
-rw-r--r-- | lib/libc/rpc/clnt_simple.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/rpc/clnt_simple.c b/lib/libc/rpc/clnt_simple.c index 2678287f9fca..5dfbc228d1be 100644 --- a/lib/libc/rpc/clnt_simple.c +++ b/lib/libc/rpc/clnt_simple.c @@ -30,7 +30,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)clnt_simple.c 1.35 87/08/11 Copyr 1984 Sun Micro";*/ /*static char *sccsid = "from: @(#)clnt_simple.c 2.2 88/08/01 4.0 RPCSRC";*/ -static char *rcsid = "$Id: clnt_simple.c,v 1.2 1995/05/30 05:41:17 rgrimes Exp $"; +static char *rcsid = "$Id: clnt_simple.c,v 1.3 1995/10/22 14:51:17 phk Exp $"; #endif /* @@ -55,8 +55,9 @@ static struct callrpc_private { char *oldhost; } *callrpc_private; -callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out) +int callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out) char *host; + int prognum, versnum, procnum; xdrproc_t inproc, outproc; char *in, *out; { |