]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Mon, 21 Dec 2009 01:13:12 +0000 (18:13 -0700)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Mon, 21 Dec 2009 01:13:12 +0000 (18:13 -0700)
src/external_acl.cc
src/snmp_core.cc

index 412a4a7a0f79fa9013e029cd6aa75cb650c38bc6..737d6cfc7456344ed1ee6d3600aaadfc3a8ca9c1 100644 (file)
@@ -357,11 +357,11 @@ parse_externalAclHelper(external_acl ** list)
         token = strtok(NULL, w_space);
     }
 
-     /* check that child startup value is sane. */
+    /* check that child startup value is sane. */
     if (a->children.n_startup > a->children.n_max)
         a->children.n_startup = a->children.n_max;
 
-     /* check that child idle value is sane. */
+    /* check that child idle value is sane. */
     if (a->children.n_idle > a->children.n_max)
         a->children.n_idle = a->children.n_max;
     if (a->children.n_idle < 1)
index 6b825b618c7cbe52739e733c8ca94d204f6c7378..13686ad24f12db653e2ef2193d7edf29fa903621 100644 (file)
@@ -219,7 +219,7 @@ snmpInit(void)
     snmpAddNodeStr("1.3.6.1.4.1.3495.1.4.2", FQDN_GHBN, snmp_netFqdnFn, static_Inst);
 
     snmpAddNodeStr("1.3.6.1.4.1.3495.1.4", NET_DNS_CACHE, NULL, NULL);
- #if USE_DNSSERVERS
+#if USE_DNSSERVERS
     snmpAddNodeStr("1.3.6.1.4.1.3495.1.4.3", DNS_REQ, snmp_netDnsFn, static_Inst);
     snmpAddNodeStr("1.3.6.1.4.1.3495.1.4.3", DNS_REP, snmp_netDnsFn, static_Inst);
     snmpAddNodeStr("1.3.6.1.4.1.3495.1.4.3", DNS_SERVERS, snmp_netDnsFn, static_Inst);
@@ -752,7 +752,7 @@ peer_Inst(oid * name, snint * len, mib_tree_entry * current, oid_ParseFn ** Fn)
     peer *peers = Config.peers;
 
     if (peers == NULL) {
-       debugs(49, 6, "snmp peer_Inst: No Peers.");
+        debugs(49, 6, "snmp peer_Inst: No Peers.");
         current = current->parent->parent->parent->leaves[1];
         while ((current) && (!current->parsefunction))
             current = current->leaves[0];
@@ -931,7 +931,7 @@ snmpLookupNodeStr(mib_tree_entry *root, const char *str)
     }
 
     int i, r = 1;
-    while(r <= namelen) {
+    while (r <= namelen) {
 
         /* Find the child node which matches this */
         for (i = 0; i < e->children && e->leaves[i]->name[r] != name[r]; i++) ; // seek-loop
@@ -961,7 +961,7 @@ snmpCreateOidFromStr(const char *str, oid **name, int *nl)
     char *s = xstrdup(str);
 
     /* Parse the OID string into oid bits */
-    while( (p = strsep(&s, delim)) != NULL) {
+    while ( (p = strsep(&s, delim)) != NULL) {
         *name = (oid*)xrealloc(*name, sizeof(oid) * ((*nl) + 1));
         (*name)[*nl] = atoi(p);
         (*nl)++;