This fixes the compiler warning pointer-to-int-cast in serve.c
``` In file included from src/server/bitset.h:4:0, from src/server/mirror.h:8, from src/server/flexnbd.h:5, from src/server/serve.h:8, from src/server/serve.c:1: src/server/serve.c: In function 'tryjoin_client_thread': src/server/serve.c:258:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (uint64_t)status); ^ ```
This commit is contained in:
@@ -255,7 +255,7 @@ int tryjoin_client_thread( struct client_tbl_entry *entry, int (*joinfunc)(pthre
|
|||||||
debug("nbd thread %016x exited (%s) with status %ld",
|
debug("nbd thread %016x exited (%s) with status %ld",
|
||||||
entry->thread,
|
entry->thread,
|
||||||
s_client_address,
|
s_client_address,
|
||||||
(uint64_t)status);
|
(uintptr_t)status);
|
||||||
client_destroy( entry->client );
|
client_destroy( entry->client );
|
||||||
entry->client = NULL;
|
entry->client = NULL;
|
||||||
entry->thread = 0;
|
entry->thread = 0;
|
||||||
|
Reference in New Issue
Block a user