summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/librpc/getrpcport.c
diff options
context:
space:
mode:
authorNicolas Planel <nplanel@mandriva.com>2003-10-29 16:07:11 +0000
committerNicolas Planel <nplanel@mandriva.com>2003-10-29 16:07:11 +0000
commitde47eb59bb829423b1d0f47ba13099073999b3cb (patch)
tree827f35c4666e15ec66edae7c1fa05d963324602b /mdk-stage1/dietlibc/librpc/getrpcport.c
parent1fece42e9c460ca017fc4facad380f05163d8977 (diff)
downloaddrakx-backup-do-not-use-topic/Corpo_2_1.tar
drakx-backup-do-not-use-topic/Corpo_2_1.tar.gz
drakx-backup-do-not-use-topic/Corpo_2_1.tar.bz2
drakx-backup-do-not-use-topic/Corpo_2_1.tar.xz
drakx-backup-do-not-use-topic/Corpo_2_1.zip
Corporate Server 2.1.1 releasetopic/Corpo_2_1
Diffstat (limited to 'mdk-stage1/dietlibc/librpc/getrpcport.c')
-rw-r--r--mdk-stage1/dietlibc/librpc/getrpcport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/dietlibc/librpc/getrpcport.c b/mdk-stage1/dietlibc/librpc/getrpcport.c
index a7085cbe7..7b6e50a7d 100644
--- a/mdk-stage1/dietlibc/librpc/getrpcport.c
+++ b/mdk-stage1/dietlibc/librpc/getrpcport.c
@@ -42,15 +42,15 @@ static char sccsid[] = "@(#)getrpcport.c 1.3 87/08/11 SMI";
#include <string.h>
#include <rpc/pmap_clnt.h>
-extern int getrpcport (const char * host, u_long prognum,
- u_long versnum, u_int proto)
+extern int getrpcport (const char * host, unsigned long prognum,
+ unsigned long versnum, unsigned int proto)
{
struct sockaddr_in addr;
struct hostent *hp;
if ((hp = gethostbyname(host)) == NULL)
return (0);
- bcopy(hp->h_addr, (char *) &addr.sin_addr, hp->h_length);
+ memmove((char *) &addr.sin_addr, hp->h_addr, hp->h_length);
addr.sin_family = AF_INET;
addr.sin_port = 0;
return (pmap_getport(&addr, prognum, versnum, proto));