aboutsummaryrefslogtreecommitdiffstats
path: root/src/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/manager.c b/src/manager.c
index b6e03c5..dd0cb1f 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -162,19 +162,19 @@ static DBusMessage *create_proxy_config(DBusConnection *conn,
switch (dbus_message_iter_get_arg_type(&value)) {
case DBUS_TYPE_STRING:
- if (g_str_equal(key, "Method") == TRUE) {
+ if (g_str_equal(key, "Method")) {
dbus_message_iter_get_basic(&value, &method);
if (strlen(method) == 0)
method = NULL;
- } else if (g_str_equal(key, "URL") == TRUE) {
+ } else if (g_str_equal(key, "URL")) {
dbus_message_iter_get_basic(&value, &url);
if (strlen(url) == 0)
url = NULL;
- } else if (g_str_equal(key, "Script") == TRUE) {
+ } else if (g_str_equal(key, "Script")) {
dbus_message_iter_get_basic(&value, &script);
if (strlen(script) == 0)
script = NULL;
- } else if (g_str_equal(key, "Interface") == TRUE) {
+ } else if (g_str_equal(key, "Interface")) {
dbus_message_iter_get_basic(&value, &interface);
if (strlen(interface) == 0)
interface = NULL;
@@ -187,16 +187,16 @@ static DBusMessage *create_proxy_config(DBusConnection *conn,
DBUS_TYPE_INVALID)
break;
- if (g_str_equal(key, "Servers") == TRUE) {
+ if (g_str_equal(key, "Servers")) {
g_strfreev(servers);
servers = extract_string_array(&list);
- } else if (g_str_equal(key, "Excludes") == TRUE) {
+ } else if (g_str_equal(key, "Excludes")) {
g_strfreev(excludes);
excludes = extract_string_array(&list);
- } else if (g_str_equal(key, "Domains") == TRUE) {
+ } else if (g_str_equal(key, "Domains")) {
g_strfreev(domains);
domains = extract_string_array(&list);
- } else if (g_str_equal(key, "Nameservers") == TRUE) {
+ } else if (g_str_equal(key, "Nameservers")) {
g_strfreev(nameservers);
nameservers = extract_string_array(&list);
}
@@ -230,14 +230,14 @@ static DBusMessage *create_proxy_config(DBusConnection *conn,
domains = NULL;
nameservers = NULL;
- if (g_str_equal(method, "direct") == TRUE) {
+ if (g_str_equal(method, "direct")) {
if (pacrunner_proxy_set_direct(config->proxy) < 0)
pacrunner_error("Failed to set direct proxy");
- } else if (g_str_equal(method, "manual") == TRUE) {
+ } else if (g_str_equal(method, "manual")) {
if (pacrunner_proxy_set_manual(config->proxy,
servers, excludes) < 0)
pacrunner_error("Failed to set proxy servers");
- } else if (g_str_equal(method, "auto") == TRUE) {
+ } else if (g_str_equal(method, "auto")) {
if (pacrunner_proxy_set_auto(config->proxy, url, script) < 0)
pacrunner_error("Failed to set auto proxy");
} else {