Thread: silence compiler warnings

This commit is contained in:
李通洲
2022-11-17 00:13:25 +08:00
parent fde9379bb2
commit 2a34978487
+1 -1
View File
@@ -67,7 +67,7 @@ bool ffNetworkingSendHttpRequest(FFNetworkingState* state, const char* host, con
#ifdef FF_HAVE_THREADS
state->thread = ffThreadCreate(connectAndSendThreadMain, state);
return state->thread != NULL;
return !!state->thread;
#else
connectAndSend(state);
return state->sockfd != -1;