From 09e967c2d732783b2579e4e120cd9b608404cb00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Wed, 4 Jun 2003 18:31:57 +0000 Subject: Merge from R9_0-AMD64, most notably: - AMD64 support to insmod-busybox, minilibc, et al. - Sync with insmod-modutils 2.4.19 something but everyone should use dietlibc nowadays - Factor out compilation and prefix with $(DIET) for dietlibc builds - 64-bit & varargs fixes --- mdk-stage1/dietlibc/librpc/clnt_generic.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mdk-stage1/dietlibc/librpc/clnt_generic.c') diff --git a/mdk-stage1/dietlibc/librpc/clnt_generic.c b/mdk-stage1/dietlibc/librpc/clnt_generic.c index 9bb81cc80..5c0b96af9 100644 --- a/mdk-stage1/dietlibc/librpc/clnt_generic.c +++ b/mdk-stage1/dietlibc/librpc/clnt_generic.c @@ -44,8 +44,8 @@ static char sccsid[] = "@(#)clnt_generic.c 1.4 87/08/11 (C) 1987 SMI"; * returns client handle. Default options are set, which the user can * change using the rpc equivalent of ioctl()'s. */ -CLIENT *clnt_create __P ((const char *hostname, const u_long prog, - const u_long vers, const char *proto)) +CLIENT *clnt_create __P ((const char *hostname, const unsigned long prog, + const unsigned long vers, const char *proto)) { struct hostent *h; struct protoent *p; @@ -68,14 +68,14 @@ CLIENT *clnt_create __P ((const char *hostname, const u_long prog, return (NULL); } #ifdef __linux__ - bzero((char *) &sin, sizeof(sin)); + memset((char*)&sin,0,sizeof(sin)); #endif sin.sin_family = h->h_addrtype; sin.sin_port = 0; #ifndef __linux__ - bzero(sin.sin_zero, sizeof(sin.sin_zero)); + memset(sin.sin_zero,0,sizeof(sin.sin_zero)); #endif - bcopy(h->h_addr, (char *) &sin.sin_addr, h->h_length); + memmove((char *) &sin.sin_addr, h->h_addr, h->h_length); p = getprotobyname(proto); if (p == NULL) { rpc_createerr.cf_stat = RPC_UNKNOWNPROTO; -- cgit v1.2.1