fix compiler warnings
[deb_libnfs.git] / lib / libnfs-zdr.c
index a159632b989e047cb06e622ffb93ab1d98884414..8d43144a96bb6e88aebb1f08ae314e117ea9ac89 100644 (file)
@@ -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));