diff options
author | jraynard <jraynard@FreeBSD.org> | 1996-06-08 22:54:59 +0000 |
---|---|---|
committer | jraynard <jraynard@FreeBSD.org> | 1996-06-08 22:54:59 +0000 |
commit | 334d5a2501b8e9c0a881869a4a14de472a3d752a (patch) | |
tree | 0d3c657c913deeac4d961f72b4acf381ec762180 /lib/libc/rpc/svc_udp.c | |
parent | 6f17f90cd60ae1ed4bf1e5a24833a04ce13a749c (diff) | |
download | FreeBSD-src-334d5a2501b8e9c0a881869a4a14de472a3d752a.zip FreeBSD-src-334d5a2501b8e9c0a881869a4a14de472a3d752a.tar.gz |
Code cleanup (part one):
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. Got rid of "extern int errno" rubbish.
Diffstat (limited to 'lib/libc/rpc/svc_udp.c')
-rw-r--r-- | lib/libc/rpc/svc_udp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/rpc/svc_udp.c b/lib/libc/rpc/svc_udp.c index b071355..2b0ca61 100644 --- a/lib/libc/rpc/svc_udp.c +++ b/lib/libc/rpc/svc_udp.c @@ -30,7 +30,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro";*/ /*static char *sccsid = "from: @(#)svc_udp.c 2.2 88/07/29 4.0 RPCSRC";*/ -static char *rcsid = "$Id: svc_udp.c,v 1.3 1995/05/30 05:41:39 rgrimes Exp $"; +static char *rcsid = "$Id: svc_udp.c,v 1.4 1995/10/22 14:51:39 phk Exp $"; #endif /* @@ -49,6 +49,7 @@ static char *rcsid = "$Id: svc_udp.c,v 1.3 1995/05/30 05:41:39 rgrimes Exp $"; #include <sys/socket.h> #include <errno.h> +int bindresvport(int sd, struct sockaddr_in *); #define rpc_buffer(xprt) ((xprt)->xp_p1) #define MAX(a, b) ((a > b) ? a : b) @@ -69,8 +70,6 @@ static struct xp_ops svcudp_op = { svcudp_destroy }; -extern int errno; - /* * kept in xprt->xp_p2 */ @@ -340,7 +339,7 @@ struct udp_cache { * Enable use of the cache. * Note: there is no disable. */ -svcudp_enablecache(transp, size) +int svcudp_enablecache(transp, size) SVCXPRT *transp; u_long size; { @@ -444,7 +443,7 @@ cache_set(xprt, replylen) * return 1 if found, 0 if not found */ static -cache_get(xprt, msg, replyp, replylenp) +int cache_get(xprt, msg, replyp, replylenp) SVCXPRT *xprt; struct rpc_msg *msg; char **replyp; |