From 4a9e75030a430f99ebbcf59407c632f4da1de5d4 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Tue, 11 Jul 2023 11:16:58 -0700 Subject: [PATCH] Clean up inconsistent comments. --- config_kde.c | 2 +- config_mac.c | 2 +- resolver.c | 4 ++-- resolver_gnome3.c | 4 ++-- resolver_mac.c | 4 ++-- resolver_posix.c | 4 ++-- resolver_win8.c | 4 ++-- resolver_winrt.c | 4 ++-- resolver_winxp.c | 6 +++--- util_linux.c | 2 +- util_win.c | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/config_kde.c b/config_kde.c index 5370171..8098615 100644 --- a/config_kde.c +++ b/config_kde.c @@ -117,7 +117,7 @@ bool proxy_config_kde_global_init(void) { break; } - // Check to see if config file exists + // Check if config file exists if (access(config_path, F_OK) == -1) return false; diff --git a/config_mac.c b/config_mac.c index b18a8b8..d1362c6 100644 --- a/config_mac.c +++ b/config_mac.c @@ -41,7 +41,7 @@ char *proxy_config_mac_get_auto_config_url(void) { if (!proxy_settings) return NULL; - // Check to see if auto-config url is enabled + // Check if auto-config url is enabled if (get_cf_dictionary_bool(proxy_settings, kCFNetworkProxiesProxyAutoConfigEnable)) { // Get the auto-config url CFStringRef auto_config_url = CFDictionaryGetValue(proxy_settings, kCFNetworkProxiesProxyAutoConfigURLString); diff --git a/resolver.c b/resolver.c index e670d90..fd3eb9c 100644 --- a/resolver.c +++ b/resolver.c @@ -77,10 +77,10 @@ static bool proxy_resolver_get_proxies_for_url_from_system_config(void *ctx, con goto config_done; } - // Check to see if manually configured proxy is specified in system config + // Check if manually configured proxy is specified in system config proxy = proxy_config_get_proxy(scheme); if (proxy) { - // Check to see if we need to bypass the proxy for the url + // Check if we need to bypass the proxy for the url char *bypass_list = proxy_config_get_bypass_list(); bool should_bypass = should_bypass_proxy(url, bypass_list); if (should_bypass) { diff --git a/resolver_gnome3.c b/resolver_gnome3.c index 377cd7e..0c25e4d 100644 --- a/resolver_gnome3.c +++ b/resolver_gnome3.c @@ -269,8 +269,8 @@ proxy_resolver_i_s *proxy_resolver_gnome3_get_interface(void) { proxy_resolver_gnome3_cancel, proxy_resolver_gnome3_create, proxy_resolver_gnome3_delete, - false /* get_proxies_for_url should be spooled to another thread */, - true /* get_proxies_for_url takes into account system config */, + false, // get_proxies_for_url should be spooled to another thread + true, // get_proxies_for_url takes into account system config proxy_resolver_gnome3_global_init, proxy_resolver_gnome3_global_cleanup}; return &proxy_resolver_gnome3_i; diff --git a/resolver_mac.c b/resolver_mac.c index 5002b95..1512ff3 100644 --- a/resolver_mac.c +++ b/resolver_mac.c @@ -243,8 +243,8 @@ proxy_resolver_i_s *proxy_resolver_mac_get_interface(void) { proxy_resolver_mac_cancel, proxy_resolver_mac_create, proxy_resolver_mac_delete, - false /* get_proxies_for_url should be spooled to another thread */, - false /* get_proxies_for_url does not take into account system config */, + false, // get_proxies_for_url should be spooled to another thread + false, // get_proxies_for_url does not take into account system config proxy_resolver_mac_global_init, proxy_resolver_mac_global_cleanup}; return &proxy_resolver_mac_i; diff --git a/resolver_posix.c b/resolver_posix.c index 5defd28..d0cac3c 100644 --- a/resolver_posix.c +++ b/resolver_posix.c @@ -296,8 +296,8 @@ proxy_resolver_i_s *proxy_resolver_posix_get_interface(void) { proxy_resolver_posix_cancel, proxy_resolver_posix_create, proxy_resolver_posix_delete, - false /* get_proxies_for_url should be spooled to another thread */, - false /* get_proxies_for_url does not take into account system config */, + false, // get_proxies_for_url should be spooled to another thread + false, // get_proxies_for_url does not take into account system config proxy_resolver_posix_global_init, proxy_resolver_posix_global_cleanup}; return &proxy_resolver_posix_i; diff --git a/resolver_win8.c b/resolver_win8.c index 8786d76..41dd9f2 100644 --- a/resolver_win8.c +++ b/resolver_win8.c @@ -364,8 +364,8 @@ proxy_resolver_i_s *proxy_resolver_win8_get_interface(void) { proxy_resolver_win8_cancel, proxy_resolver_win8_create, proxy_resolver_win8_delete, - true /* get_proxies_for_url is handled asynchronously */, - false /* get_proxies_for_url does not take into account system config */, + true, // get_proxies_for_url is handled asynchronously + false, // get_proxies_for_url does not take into account system config proxy_resolver_win8_global_init, proxy_resolver_win8_global_cleanup}; return &proxy_resolver_win8_i; diff --git a/resolver_winrt.c b/resolver_winrt.c index b7aabfa..a958e97 100644 --- a/resolver_winrt.c +++ b/resolver_winrt.c @@ -404,8 +404,8 @@ proxy_resolver_i_s *proxy_resolver_winrt_get_interface(void) { proxy_resolver_winrt_cancel, proxy_resolver_winrt_create, proxy_resolver_winrt_delete, - true /* get_proxies_for_url is handled asynchronously */, - true /* get_proxies_for_url takes into account system config */, + true, // get_proxies_for_url is handled asynchronously + true, // get_proxies_for_url takes into account system config proxy_resolver_winrt_global_init, proxy_resolver_winrt_global_cleanup}; return &proxy_resolver_winrt_i; diff --git a/resolver_winxp.c b/resolver_winxp.c index cc2001c..2b80759 100644 --- a/resolver_winxp.c +++ b/resolver_winxp.c @@ -113,7 +113,7 @@ bool proxy_resolver_winxp_get_proxies_for_url(void *ctx, const char *url) { if (proxy_info.lpszProxyBypass) bypass_list = wchar_dup_to_utf8(proxy_info.lpszProxyBypass); if (bypass_list) { - // Check to see if we need to bypass the proxy for the url + // Check if we need to bypass the proxy for the url bool should_bypass = should_bypass_proxy(url, bypass_list); if (should_bypass) { // Bypass the proxy for the url @@ -234,8 +234,8 @@ proxy_resolver_i_s *proxy_resolver_winxp_get_interface(void) { proxy_resolver_winxp_cancel, proxy_resolver_winxp_create, proxy_resolver_winxp_delete, - false /* get_proxies_for_url should be spooled to another thread */, - false /* get_proxies_for_url does not take into account system config */, + false, // get_proxies_for_url should be spooled to another thread + false, // get_proxies_for_url does not take into account system config proxy_resolver_winxp_global_init, proxy_resolver_winxp_global_cleanup}; return &proxy_resolver_winxp_i; diff --git a/util_linux.c b/util_linux.c index 1469aca..7b352a0 100644 --- a/util_linux.c +++ b/util_linux.c @@ -87,7 +87,7 @@ char *get_config_value(const char *config, const char *section, const char *key) } } - // Check to see if we are in the right section + // Check if we are in the right section if (line_len > 2 && line_start[0] == '[' && line_end[-1] == ']') in_section = strncmp(line_start + 1, section, line_len - 2) == 0; diff --git a/util_win.c b/util_win.c index 2e43903..7725532 100644 --- a/util_win.c +++ b/util_win.c @@ -77,7 +77,7 @@ char *get_winhttp_proxy_by_scheme(const char *scheme, const char *proxy_list) { host_start++; } - // Check to see if the scheme in the proxy config matches the url scheme + // Check if the scheme in the proxy config matches the url scheme if (real_scheme_len == config_scheme_len && _strnicmp(real_scheme, config_scheme, config_scheme_len) == 0) { if (!config_end) config_end = host_start + strlen(host_start);