Make xid be a uint32_t and not either unsigned long or unsigned int
[deb_libnfs.git] / lib / pdu.c
index d25c448caef0cc855ef6b52594cf6e1f22a43650..8de51d2fb56025ea7750f84f7126afd5b412eb58 100644 (file)
--- a/lib/pdu.c
+++ b/lib/pdu.c
@@ -24,9 +24,7 @@
 
 #ifdef WIN32
 #include "win32_compat.h"
-#else
-#include <strings.h>
-#endif/*WIN32*/
+#endif
 
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #include <sys/socket.h>
 #endif
 
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -228,7 +230,7 @@ int rpc_process_pdu(struct rpc_context *rpc, char *buf, int size)
        struct rpc_pdu *pdu;
        ZDR zdr;
        int pos, recordmarker = 0;
-       unsigned int xid;
+       uint32_t xid;
        char *reasbuf = NULL;
 
        assert(rpc->magic == RPC_CONTEXT_MAGIC);