fix compiler warnings
[deb_libnfs.git] / lib / libnfs-zdr.c
index e439249abb7b67cd506a94960b1cc96e3fc1082b..8d43144a96bb6e88aebb1f08ae314e117ea9ac89 100644 (file)
@@ -286,7 +286,7 @@ static bool_t libnfs_opaque_auth(ZDR *zdrs, struct opaque_auth *auth)
                return FALSE;
        }
 
-       if (!libnfs_zdr_bytes(zdrs, &auth->oa_base, &auth->oa_length, &auth->oa_length)) {
+       if (!libnfs_zdr_bytes(zdrs, &auth->oa_base, &auth->oa_length, auth->oa_length)) {
                return FALSE;
        }
 
@@ -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));