Skip to content

Commit

Permalink
Fix LLVM clang compile warnings on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-nsk committed Sep 5, 2023
1 parent e3b3217 commit c7cb819
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fetch_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ char *fetch_get(const char *url, int32_t *error) {

// Create communication socket
sfd = socket(address_info->ai_family, address_info->ai_socktype, address_info->ai_protocol);
if (sfd == -1) {
if ((int)sfd == -1) {
err = socketerr;
LOG_ERROR("Unable to create socket (%" PRId32 ")\n", err);
goto download_cleanup;
Expand Down
2 changes: 1 addition & 1 deletion wpad_dhcp_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static bool dhcp_read_reply(SOCKET sfd, uint32_t request_xid, dhcp_msg *reply) {

char *wpad_dhcp_adapter_posix(uint8_t bind_ip[4], net_adapter_s *adapter, int32_t timeout_sec) {
SOCKET sfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (sfd == -1) {
if ((int)sfd == -1) {
LOG_ERROR("Unable to create udp socket\n");
return NULL;
}
Expand Down

0 comments on commit c7cb819

Please sign in to comment.