]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Tue, 23 Mar 2010 00:13:27 +0000 (18:13 -0600)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Tue, 23 Mar 2010 00:13:27 +0000 (18:13 -0600)
compat/strsep.h
compat/strtoll.h
helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc
lib/getnameinfo.c
test-suite/pconn-banger.c

index 87d1c71bc90bc98b86899ad969511a50fac2172b..d951bd858ee5e93d3f34068fd07bb9660ec407b4 100644 (file)
  * to point to the next char after it.  Otherwise, *STRINGP is set to NULL.
  * If *STRINGP was already NULL, nothing happens.
  * Returns the old value of *STRINGP.
- * 
+ *
  *\par
  * This is a variant of strtok() that is multithread-safe and supports
  * empty fields.
- * 
+ *
  * \note   Caveat: It modifies the original string.
  * \note   Caveat: These functions cannot be used on constant strings.
  * \note   Caveat: The identity of the delimiting character is lost.
  * \note   Caveat: It doesn't work with multibyte strings unless all of the delimiter
  * characters are ASCII characters < 0x30.
- * 
+ *
  * See also strtok_r().
  */
 SQUIDCEXTERN char *strsep(char **stringp, const char *delim);
index 60c04c21a0049225c5fac042b41249de882cda39..7dd12b02ed006d02dd652f7ee03c1a879b56e5b2 100644 (file)
@@ -10,7 +10,7 @@
 /**
  *\par
  * Convert a string to a int64 integer.
- * 
+ *
  *\par
  * Ignores `locale' stuff.  Assumes that the upper and lower case
  * alphabets and digits are each contiguous.
index b48ebdc089dd64fda7a488468aa2c64dbd4d2b3e..5f84ea41f8cd0d95cd8def8fadc3e23ebd3de2b9 100644 (file)
@@ -138,7 +138,7 @@ gethost_name(void)
         hres_list = hres_list->ai_next;
     }
     rc = getnameinfo(hres->ai_addr, hres->ai_addrlen, hostname,
-                      sizeof(hostname), NULL, 0, 0);
+                     sizeof(hostname), NULL, 0, 0);
     if (rc != 0) {
         fprintf(stderr,
                 "%s| %s: ERROR: resolving ip address with getnameinfo: %s failed\n",
index f94ea52e7ef8541aa57c2854f3a13a796374226c..bec315ba56ab2805855147212f76b25c24f1dc88 100644 (file)
@@ -325,7 +325,7 @@ numeric:
 #endif
             default:
                 if (inet_ntop(afd->a_af, addr, host,
-                               hostlen) == NULL)
+                              hostlen) == NULL)
                     return EAI_SYSTEM;
                 break;
             }
index 7ca24bcd47823418941150fb203aef55246eb4b6..93345dbc6446f77aac4362a2209e93c04ead4259 100644 (file)
@@ -142,9 +142,8 @@ open_http_socket(void)
 
     if ((s = socket(AI->ai_family, AI->ai_socktype, AI->ai_protocol)) < 0) {
         perror("socket");
-       s = -1;
-    }
-    else if (connect(s, AI->ai_addr, AI->ai_addrlen) < 0) {
+        s = -1;
+    } else if (connect(s, AI->ai_addr, AI->ai_addrlen) < 0) {
         close(s);
         perror("connect");
         s = -1;