patch-2.4.19 linux-2.4.19/net/sunrpc/pmap_clnt.c
Next file: linux-2.4.19/net/sunrpc/sched.c
Previous file: linux-2.4.19/net/socket.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Aug 2 17:39:46 2002
- Orig file:
linux-2.4.18/net/sunrpc/pmap_clnt.c
- Orig date:
Fri Sep 21 11:24:50 2001
diff -urN linux-2.4.18/net/sunrpc/pmap_clnt.c linux-2.4.19/net/sunrpc/pmap_clnt.c
@@ -87,8 +87,6 @@
}
#ifdef CONFIG_ROOT_NFS
-char *in_ntoa(__u32 in);
-
int
rpc_getport_external(struct sockaddr_in *sin, __u32 prog, __u32 vers, int prot)
{
@@ -100,7 +98,7 @@
dprintk("RPC: rpc_getport_external(%u.%u.%u.%u, %d, %d, %d)\n",
NIPQUAD(sin->sin_addr.s_addr), prog, vers, prot);
- strcpy(hostname, in_ntoa(sin->sin_addr.s_addr));
+ sprintf(hostname, "%u.%u.%u.%u", NIPQUAD(sin->sin_addr.s_addr));
if (!(pmap_clnt = pmap_create(hostname, sin, prot)))
return -EACCES;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)