diff --git a/resolver_mac.c b/resolver_mac.c index 1512ff3..9bbbd30 100644 --- a/resolver_mac.c +++ b/resolver_mac.c @@ -116,8 +116,6 @@ bool proxy_resolver_mac_get_proxies_for_url(void *ctx, const char *url) { CFURLRef target_url_ref = NULL; CFURLRef url_ref = NULL; char *auto_config_url = NULL; - char *proxy = NULL; - char *bypass_list = NULL; bool is_ok = false; if (!proxy_resolver || !url) @@ -126,7 +124,7 @@ bool proxy_resolver_mac_get_proxies_for_url(void *ctx, const char *url) { auto_config_url = proxy_config_get_auto_config_url(); if (!auto_config_url) { proxy_resolver->error = EINVAL; - LOG_ERROR("Auto configuration url not specified", proxy_resolver->error); + LOG_ERROR("Auto configuration url not specified"); goto mac_done; } diff --git a/wpad_dhcp_posix.c b/wpad_dhcp_posix.c index 8139a20..82431d0 100644 --- a/wpad_dhcp_posix.c +++ b/wpad_dhcp_posix.c @@ -179,7 +179,7 @@ static bool dhcp_read_reply(SOCKET sfd, uint32_t request_xid, dhcp_msg *reply) { const ssize_t response_len = recvfrom(sfd, (char *)reply, sizeof(dhcp_msg), 0, NULL, NULL); if (response_len <= (ssize_t)(sizeof(dhcp_msg) - DHCP_OPT_MIN_LENGTH)) { - LOG_DEBUG("Unable to read DHCP reply (%d:%d)\n", response_len, socketerr); + LOG_DEBUG("Unable to read DHCP reply (%d:%d)\n", (int32_t)response_len, socketerr); return false; }