diff options
Diffstat (limited to 'sunrpc')
-rw-r--r-- | sunrpc/netname.c | 1 | ||||
-rw-r--r-- | sunrpc/svc.c | 7 | ||||
-rw-r--r-- | sunrpc/svc_simple.c | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/sunrpc/netname.c b/sunrpc/netname.c index 9deb6d2d8d..dd275f133c 100644 --- a/sunrpc/netname.c +++ b/sunrpc/netname.c @@ -55,6 +55,7 @@ user2netname (char netname[MAXNETNAMELEN + 1], const uid_t uid, netname[i - 1] = '\0'; return 1; } +libc_hidden_def (user2netname) int host2netname (char netname[MAXNETNAMELEN + 1], const char *host, diff --git a/sunrpc/svc.c b/sunrpc/svc.c index 6e7fdeae2a..b7c4f096dd 100644 --- a/sunrpc/svc.c +++ b/sunrpc/svc.c @@ -194,7 +194,7 @@ pmap_it: return TRUE; } -INTDEF (svc_register) +libc_hidden_def (svc_register) /* Remove a service program from the callout list. */ void @@ -216,7 +216,7 @@ svc_unregister (rpcprog_t prog, rpcvers_t vers) /* now unregister the information with the local binder service */ pmap_unset (prog, vers); } -INTDEF (svc_unregister) +libc_hidden_def (svc_unregister) /* ******************* REPLY GENERATION ROUTINES ************ */ @@ -289,6 +289,7 @@ svcerr_auth (SVCXPRT *xprt, enum auth_stat why) rply.rjcted_rply.rj_why = why; SVC_REPLY (xprt, &rply); } +libc_hidden_def (svcerr_auth) /* Auth too weak error reply */ void @@ -309,6 +310,7 @@ svcerr_noprog (register SVCXPRT *xprt) rply.acpted_rply.ar_stat = PROG_UNAVAIL; SVC_REPLY (xprt, &rply); } +libc_hidden_def (svcerr_noprog) /* Program version mismatch error reply */ void @@ -325,6 +327,7 @@ svcerr_progvers (register SVCXPRT *xprt, rpcvers_t low_vers, rply.acpted_rply.ar_vers.high = high_vers; SVC_REPLY (xprt, &rply); } +libc_hidden_def (svcerr_progvers) /* ******************* SERVER INPUT STUFF ******************* */ diff --git a/sunrpc/svc_simple.c b/sunrpc/svc_simple.c index 397b71f520..b30e4cff4d 100644 --- a/sunrpc/svc_simple.c +++ b/sunrpc/svc_simple.c @@ -98,8 +98,8 @@ registerrpc (u_long prognum, u_long versnum, u_long procnum, } } (void) pmap_unset ((u_long) prognum, (u_long) versnum); - if (!INTUSE(svc_register) (transp, (u_long) prognum, (u_long) versnum, - universal, IPPROTO_UDP)) + if (!svc_register (transp, (u_long) prognum, (u_long) versnum, + universal, IPPROTO_UDP)) { (void) __asprintf (&buf, _("couldn't register prog %ld vers %ld\n"), prognum, versnum); |