commit | df380934e53c645b4b7cdec882b512b4d20ebc14 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Oct 11 14:25:08 2011 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Oct 11 14:25:08 2011 +0200 |
tree | 945a96505bbbd0605d2ec120646548f9fc4a30d6 | |
parent | 5fd0acbd212296542d396b07e1873b9e3093b76f [diff] [blame] |
client/server: fix ptr <-> uint64_t casting warnings on 32-bit builds Not actually a bug, but gcc complains. Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/server.c b/server.c index db9d859..ad07a0e 100644 --- a/server.c +++ b/server.c
@@ -299,7 +299,7 @@ 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);