From: Jukka Rissanen Date: Mon, 14 May 2012 10:33:44 +0000 (+0300) Subject: resolver: Follow connman coding style X-Git-Tag: 1.1~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c548a92ded222662ac9e5de23d4ea5e423f456b3;p=platform%2Fupstream%2Fconnman.git resolver: Follow connman coding style --- diff --git a/src/resolver.c b/src/resolver.c index 9656838..d273e3a 100644 --- a/src/resolver.c +++ b/src/resolver.c @@ -360,10 +360,10 @@ int connman_resolver_append_lifetime(const char *interface, const char *domain, for (list = entry_list; list; list = list->next) { struct entry_data *entry = list->data; - if (!entry->timeout || - g_strcmp0(entry->interface, interface) || - g_strcmp0(entry->domain, domain) || - g_strcmp0(entry->server, server)) + if (entry->timeout == 0 || + g_strcmp0(entry->interface, interface) != 0 || + g_strcmp0(entry->domain, domain) != 0 || + g_strcmp0(entry->server, server) != 0) continue; g_source_remove(entry->timeout);