client/server: fix ptr <-> uint64_t casting warnings on 32-bit builds
[fio.git] / server.c
index db9d8594c8b84c59003cf0d58270bbca197c8fb5..ad07a0e973e9b0ea6c813bad37dfe2b0c21d1012 100644 (file)
--- a/server.c
+++ b/server.c
@@ -299,7 +299,7 @@ int fio_net_send_simple_cmd(int sk, uint16_t opcode, uint64_t tag,
 
        cmd = malloc(sizeof(*cmd));
 
 
        cmd = malloc(sizeof(*cmd));
 
-       fio_init_net_cmd(&cmd->cmd, opcode, NULL, 0, (uint64_t) cmd);
+       fio_init_net_cmd(&cmd->cmd, opcode, NULL, 0, (uintptr_t) cmd);
        fio_net_cmd_crc(&cmd->cmd);
 
        INIT_FLIST_HEAD(&cmd->list);
        fio_net_cmd_crc(&cmd->cmd);
 
        INIT_FLIST_HEAD(&cmd->list);