]> granicus.if.org Git - pgbouncer/commitdiff
Fix too compact syntax.
authorMarko Kreen <markokr@gmail.com>
Thu, 1 Sep 2011 08:41:49 +0000 (11:41 +0300)
committerMarko Kreen <markokr@gmail.com>
Thu, 1 Sep 2011 08:41:49 +0000 (11:41 +0300)
src/dnslookup.c
src/util.c

index b46248468907d2dac0d00b033c67960b0dd81ec2..419c8e4c724f9e09c9f1bbbdb262736751d51ba0 100644 (file)
@@ -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);
 }
index f5e93cc31d8a64a0c01e361d7d5e34b6a215aae0..9d136f8709c328b34ef49f1f90ffe2f865bc0429 100644 (file)
@@ -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: