Fix indentation, casts, a few other minor difference between these tests
that share a common codebase.
Closes #17649
if(sockets->sockets[i] == fd) {
if(i < sockets->count - 1)
memmove(&sockets->sockets[i], &sockets->sockets[i + 1],
- sizeof(curl_socket_t) * (sockets->count - (i + 1)));
+ sizeof(curl_socket_t) * (sockets->count - (i + 1)));
--sockets->count;
}
}
}
else {
curl_mfprintf(stderr, "Got an unexpected message from curl: %i\n",
- message->msg);
+ (int)message->msg);
result = 1;
*success = 0;
}
/* free local memory */
free(sockets.read.sockets);
free(sockets.write.sockets);
+
return res;
}
if(sockets->sockets[i] == fd) {
if(i < sockets->count - 1)
memmove(&sockets->sockets[i], &sockets->sockets[i + 1],
- sizeof(curl_socket_t) * (sockets->count - (i + 1)));
+ sizeof(curl_socket_t) * (sockets->count - (i + 1)));
--sockets->count;
}
}
curl_mfprintf(stderr, "Set to upload %d bytes\n", (int)file_info.st_size);
res_global_init(CURL_GLOBAL_ALL);
- if(res) {
+ if(res != CURLE_OK) {
fclose(hd_src);
return res;
}