From: wessels <> Date: Tue, 15 Oct 1996 10:58:27 +0000 (+0000) Subject: gindent X-Git-Tag: SQUID_3_0_PRE1~5649 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c6679053fdf539ce5ca72af71e089bb0226debf;p=thirdparty%2Fsquid.git gindent --- diff --git a/src/net_db.cc b/src/net_db.cc index b98d473889..f667b1a394 100644 --- a/src/net_db.cc +++ b/src/net_db.cc @@ -330,34 +330,37 @@ netdbDump(StoreEntry * sentry) struct _net_db_name *x; int k; int i; - storeAppendPrintf(sentry, "{Network DB Statistics:\n"); /* } */ - storeAppendPrintf(sentry, "{%-16.16s %9s %7s %5s %s}\n", - "Network", - "recv/sent", - "RTT", - "Hops", - "Hostnames"); - list = xcalloc(meta_data.netdb_addrs, sizeof(netdbEntry *)); - i = 0; - for (n = netdbGetFirst(addr_table); n; n = netdbGetNext(addr_table)) - *(list + i++) = n; - qsort((char *) list, - i, - sizeof(netdbEntry *), - (QS) sortByHops); - for (k = 0; k < i; k++) { - n = *(list + k); - storeAppendPrintf(sentry, "{%-16.16s %4d/%4d %7.1f %5.1f", /* } */ - n->network, - n->pings_recv, - n->pings_sent, - n->rtt, - n->hops); - for (x = n->hosts; x; x = x->next) - storeAppendPrintf(sentry, " %s", x->name); - storeAppendPrintf(sentry, close_bracket); - } + storeAppendPrintf(sentry, "{Network DB Statistics:\n"); + */ +} */ + +storeAppendPrintf(sentry, "{%-16.16s %9s %7s %5s %s}\n", + "Network", + "recv/sent", + "RTT", + "Hops", + "Hostnames"); +list = xcalloc(meta_data.netdb_addrs, sizeof(netdbEntry *)); +i = 0; +for (n = netdbGetFirst(addr_table); n; n = netdbGetNext(addr_table)) + *(list + i++) = n; +qsort((char *) list, + i, + sizeof(netdbEntry *), + (QS) sortByHops); +for (k = 0; k < i; k++) { + n = *(list + k); + storeAppendPrintf(sentry, "{%-16.16s %4d/%4d %7.1f %5.1f", /* } */ + n->network, + n->pings_recv, + n->pings_sent, + n->rtt, + n->hops); + for (x = n->hosts; x; x = x->next) + storeAppendPrintf(sentry, " %s", x->name); storeAppendPrintf(sentry, close_bracket); - xfree(list); +} +storeAppendPrintf(sentry, close_bracket); +xfree(list); #endif }