diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-06-04 18:31:57 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-06-04 18:31:57 +0000 |
commit | 09e967c2d732783b2579e4e120cd9b608404cb00 (patch) | |
tree | 8d2783a6a7e33608c6012efd6a88b8f5694df81d /mdk-stage1/dietlibc/librpc/clnt_simple.c | |
parent | 18fcff49d3c836697d3b75a3d01d31c700e69974 (diff) | |
download | drakx-backup-do-not-use-09e967c2d732783b2579e4e120cd9b608404cb00.tar drakx-backup-do-not-use-09e967c2d732783b2579e4e120cd9b608404cb00.tar.gz drakx-backup-do-not-use-09e967c2d732783b2579e4e120cd9b608404cb00.tar.bz2 drakx-backup-do-not-use-09e967c2d732783b2579e4e120cd9b608404cb00.tar.xz drakx-backup-do-not-use-09e967c2d732783b2579e4e120cd9b608404cb00.zip |
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
Diffstat (limited to 'mdk-stage1/dietlibc/librpc/clnt_simple.c')
-rw-r--r-- | mdk-stage1/dietlibc/librpc/clnt_simple.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mdk-stage1/dietlibc/librpc/clnt_simple.c b/mdk-stage1/dietlibc/librpc/clnt_simple.c index f309f86ff..e1f4c5f6c 100644 --- a/mdk-stage1/dietlibc/librpc/clnt_simple.c +++ b/mdk-stage1/dietlibc/librpc/clnt_simple.c @@ -54,8 +54,8 @@ static struct callrpc_private { char *oldhost; } *callrpc_private; -int callrpc (const char *host, const u_long prognum, - const u_long versnum, const u_long procnum, +int callrpc (const char *host, const unsigned long prognum, + const unsigned long versnum, const unsigned long procnum, const xdrproc_t inproc, const char *in, const xdrproc_t outproc, char *out) { @@ -91,11 +91,11 @@ int callrpc (const char *host, const u_long prognum, return ((int) RPC_UNKNOWNHOST); timeout.tv_usec = 0; timeout.tv_sec = 5; - bcopy(hp->h_addr, (char *) &server_addr.sin_addr, hp->h_length); + memmove((char *) &server_addr.sin_addr, hp->h_addr, hp->h_length); server_addr.sin_family = AF_INET; server_addr.sin_port = 0; - if ((crp->client = clntudp_create(&server_addr, (u_long) prognum, - (u_long) versnum, timeout, + if ((crp->client = clntudp_create(&server_addr, (unsigned long) prognum, + (unsigned long) versnum, timeout, &crp->socket)) == NULL) return ((int) rpc_createerr.cf_stat); crp->valid = 1; |