From 2f3c0dc6908f534341f4dd24c44dcfbea7c7b253 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Thu, 5 Mar 2009 06:13:33 -0500 Subject: nfs-utils: Replace getservbyname(3) The getservbyname(3) function is not re-entrant, and anyway, the man page says it is obsolete. Replace it with a call to getaddrinfo(3). Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- support/include/nfsrpc.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'support/include') diff --git a/support/include/nfsrpc.h b/support/include/nfsrpc.h index 1529d44..097debb 100644 --- a/support/include/nfsrpc.h +++ b/support/include/nfsrpc.h @@ -53,12 +53,6 @@ */ extern rpcprog_t nfs_getrpcbyname(const rpcprog_t, const char *table[]); -/* - * Look up a port number in /etc/services for an RPC program - */ -extern unsigned short nfs_getportbynumber(const rpcprog_t program, - const unsigned short transport); - /* * Acquire an RPC CLIENT * */ -- cgit