From 45670bd0d680f9c9323857d785f37a214e741ddb Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 5 Jul 2012 07:37:37 +1000 Subject: [PATCH] fix compiler warnings --- include/libnfs-raw.h | 2 +- lib/libnfs-zdr.c | 2 +- portmap/portmap.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.34.1