From 776fd78054033efa3cb120a7a3cb240b9c867e1c Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Thu, 1 Sep 2011 11:41:49 +0300 Subject: [PATCH] Fix too compact syntax. --- src/dnslookup.c | 4 ++-- src/util.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dnslookup.c b/src/dnslookup.c index b462484..419c8e4 100644 --- a/src/dnslookup.c +++ b/src/dnslookup.c @@ -493,9 +493,9 @@ nomem: static int cmp_addrinfo(const struct addrinfo *a1, const struct addrinfo *a2) { if (a1->ai_family != a2->ai_family) - return a1->ai_family-a2->ai_family; + return a1->ai_family - a2->ai_family; if (a1->ai_addrlen != a2->ai_addrlen) - return a1->ai_addrlen-a2->ai_addrlen; + return a1->ai_addrlen - a2->ai_addrlen; return memcmp(a1->ai_addr, a2->ai_addr, a1->ai_addrlen); } diff --git a/src/util.c b/src/util.c index f5e93cc..9d136f8 100644 --- a/src/util.c +++ b/src/util.c @@ -349,7 +349,7 @@ static inline unsigned pga_family(const PgAddr *a) int pga_cmp_addr(const PgAddr *a, const PgAddr *b) { if (pga_family(a) != pga_family(b)) - return pga_family(a)-pga_family(b); + return pga_family(a) - pga_family(b); switch (pga_family(a)) { case AF_INET: -- 2.40.0