From: Ronnie Sahlberg Date: Wed, 4 Jul 2012 21:37:37 +0000 (+1000) Subject: fix compiler warnings X-Git-Tag: upstream/1.9.6^2~242^2~17 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=45670bd0d680f9c9323857d785f37a214e741ddb;p=deb_libnfs.git fix compiler warnings --- diff --git a/include/libnfs-raw.h b/include/libnfs-raw.h index 0ede83c..238025d 100644 --- a/include/libnfs-raw.h +++ b/include/libnfs-raw.h @@ -158,7 +158,7 @@ int rpc_pmap_unset_async(struct rpc_context *rpc, int program, int version, int * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * data is NULL. */ -int rpc_pmap_callit_async(struct rpc_context *rpc, int program, int version, int procedure, const char *data, int datalen, rpc_cb cb, void *private_data); +int rpc_pmap_callit_async(struct rpc_context *rpc, int program, int version, int procedure, char *data, int datalen, rpc_cb cb, void *private_data); /* * MOUNT FUNCTIONS diff --git a/lib/libnfs-zdr.c b/lib/libnfs-zdr.c index a159632..8d43144 100644 --- a/lib/libnfs-zdr.c +++ b/lib/libnfs-zdr.c @@ -445,7 +445,7 @@ AUTH *libnfs_authunix_create(char *host, uint32_t uid, uint32_t gid, uint32_t le auth->ah_cred.oa_length = size; auth->ah_cred.oa_base = malloc(size); - buf = auth->ah_cred.oa_base; + buf = (uint32_t *)auth->ah_cred.oa_base; idx = 0; buf[idx++] = htonl(time(NULL)); buf[idx++] = htonl(strlen(host)); diff --git a/portmap/portmap.c b/portmap/portmap.c index aa92fea..d1c1488 100644 --- a/portmap/portmap.c +++ b/portmap/portmap.c @@ -135,7 +135,7 @@ int rpc_pmap_unset_async(struct rpc_context *rpc, int program, int version, int return 0; } -int rpc_pmap_callit_async(struct rpc_context *rpc, int program, int version, int procedure, const char *data, int datalen, rpc_cb cb, void *private_data) +int rpc_pmap_callit_async(struct rpc_context *rpc, int program, int version, int procedure, char *data, int datalen, rpc_cb cb, void *private_data) { struct rpc_pdu *pdu; struct pmap_call_args ca;