aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/svc.c
diff options
context:
space:
mode:
authorJames Raynard <jraynard@FreeBSD.org>1996-06-10 00:49:19 +0000
committerJames Raynard <jraynard@FreeBSD.org>1996-06-10 00:49:19 +0000
commit7d6a21b4d787bed3ad25c4409b7c244413cc4090 (patch)
treefb98f790b5ece8c1c87c646b39f28df9c086361a /lib/libc/rpc/svc.c
parentfd70ee84643545b78290f900e33e42e74c84be40 (diff)
downloadsrc-7d6a21b4d787bed3ad25c4409b7c244413cc4090.tar.gz
src-7d6a21b4d787bed3ad25c4409b7c244413cc4090.zip
Code cleanup (part two):
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 casts in select() args. 6. Got rid of more "extern int errno" rubbish. 7. Added extra parentheses around assignment used as truth value. 8. Fixed bug in clnt_{tcp, udp}create() where pointers could be free'd even if they hadn't been successfully malloc()'d.
Notes
Notes: svn path=/head/; revision=16270
Diffstat (limited to 'lib/libc/rpc/svc.c')
-rw-r--r--lib/libc/rpc/svc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/rpc/svc.c b/lib/libc/rpc/svc.c
index 809cbfb596e7..3bc9c1ddc0f4 100644
--- a/lib/libc/rpc/svc.c
+++ b/lib/libc/rpc/svc.c
@@ -30,7 +30,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)svc.c 1.44 88/02/08 Copyr 1984 Sun Micro";*/
/*static char *sccsid = "from: @(#)svc.c 2.4 88/08/11 4.0 RPCSRC";*/
-static char *rcsid = "$Id: svc.c,v 1.2 1995/05/30 05:41:31 rgrimes Exp $";
+static char *rcsid = "$Id: svc.c,v 1.3 1995/10/22 14:51:34 phk Exp $";
#endif
/*
@@ -49,8 +49,6 @@ static char *rcsid = "$Id: svc.c,v 1.2 1995/05/30 05:41:31 rgrimes Exp $";
#include <rpc/rpc.h>
#include <rpc/pmap_clnt.h>
-extern int errno;
-
#ifdef FD_SETSIZE
static SVCXPRT **xports;
#else
@@ -62,6 +60,8 @@ static SVCXPRT *xports[NOFILE];
#define NULL_SVC ((struct svc_callout *)0)
#define RQCRED_SIZE 400 /* this size is excessive */
+int _rpc_dtablesize(void);
+
/*
* The services list
* Each entry represents a set of procedures (an rpc program).