diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2016-07-26 12:45:35 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2016-07-26 12:45:35 +0200 |
commit | 54c0571bf5f16a713f401205b38081128e0d209e (patch) | |
tree | 14a17c644c8e0d0d89ba787002b8447375e6ad19 /src/nm-proxy-config.c | |
parent | c544bac3dd1ec007395da0acf1533eb5a9621bb0 (diff) | |
download | NetworkManager-lr/atul/proxy.tar.gz |
clang warningslr/atul/proxy
Diffstat (limited to 'src/nm-proxy-config.c')
-rw-r--r-- | src/nm-proxy-config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nm-proxy-config.c b/src/nm-proxy-config.c index c180c84bf2..1e4d741fea 100644 --- a/src/nm-proxy-config.c +++ b/src/nm-proxy-config.c @@ -195,7 +195,7 @@ nm_proxy_config_create_setting (const NMProxyConfig *config) tmp = strchr (tmp, ':') + 1; str = g_strndup (tmp, strchr (tmp, '/') - tmp); port = (guint32) atoi (str); - if (port >= 0) + if (port > 0) g_object_set (s_proxy, NM_SETTING_PROXY_HTTP_PORT, port, NULL); g_free (str); @@ -209,7 +209,7 @@ nm_proxy_config_create_setting (const NMProxyConfig *config) tmp = strchr (tmp, ':') + 1; str = g_strndup (tmp, strchr (tmp, '/') - tmp); port = (guint32) atoi (str); - if (port >= 0) + if (port > 0) g_object_set (s_proxy, NM_SETTING_PROXY_SSL_PORT, port, NULL); g_free (str); @@ -222,7 +222,7 @@ nm_proxy_config_create_setting (const NMProxyConfig *config) tmp = strchr (tmp, ':') + 1; str = g_strndup (tmp, strchr (tmp, '/') - tmp); port = (guint32) atoi (str); - if (port >= 0) + if (port > 0) g_object_set (s_proxy, NM_SETTING_PROXY_FTP_PORT, port, NULL); g_free (str); @@ -240,7 +240,7 @@ nm_proxy_config_create_setting (const NMProxyConfig *config) tmp = strchr (tmp, ':') + 1; str = g_strndup (tmp, strchr (tmp, '/') - tmp); port = (guint32) atoi (str); - if (port >= 0) + if (port > 0) g_object_set (s_proxy, NM_SETTING_PROXY_SOCKS_PORT, port, NULL); g_free (str); } |