summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/svc_tcp.c
diff options
context:
space:
mode:
authorjraynard <jraynard@FreeBSD.org>1996-06-10 20:13:09 +0000
committerjraynard <jraynard@FreeBSD.org>1996-06-10 20:13:09 +0000
commit0e3efc7987c3d214da05c649e00c7f72620a96bd (patch)
tree3a4e1682ef16b142e099c2139c0dbb40e61347ee /lib/libc/rpc/svc_tcp.c
parent68b3f1ce70e0dec9ed0b3454f40628b409196f2d (diff)
downloadFreeBSD-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/svc_tcp.c')
-rw-r--r--lib/libc/rpc/svc_tcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/rpc/svc_tcp.c b/lib/libc/rpc/svc_tcp.c
index b408dec..2b941ba 100644
--- a/lib/libc/rpc/svc_tcp.c
+++ b/lib/libc/rpc/svc_tcp.c
@@ -30,7 +30,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro";*/
/*static char *sccsid = "from: @(#)svc_tcp.c 2.2 88/08/01 4.0 RPCSRC";*/
-static char *rcsid = "$Id: svc_tcp.c,v 1.4 1995/12/07 12:50:56 bde Exp $";
+static char *rcsid = "$Id: svc_tcp.c,v 1.5 1996/06/08 22:54:57 jraynard Exp $";
#endif
/*
@@ -82,9 +82,9 @@ static enum xprt_stat rendezvous_stat();
static struct xp_ops svctcp_rendezvous_op = {
rendezvous_request,
rendezvous_stat,
- abort,
- abort,
- abort,
+ (bool_t (*)())abort,
+ (bool_t (*)())abort,
+ (bool_t (*)())abort,
svctcp_destroy
};
OpenPOWER on IntegriCloud