From 15c05bb09ea6f9e6c78cf77d25cee68e2f1801b1 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Thu, 2 May 1996 04:37:13 +0000 Subject: [PATCH] gindent --- src/stat.cc | 4 ++-- src/store.cc | 36 ++++++++++++++++++------------------ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/stat.cc b/src/stat.cc index 24e6dd75aa..bb4ea1911a 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,4 +1,4 @@ -/* $Id: stat.cc,v 1.31 1996/05/01 22:36:38 wessels Exp $ */ +/* $Id: stat.cc,v 1.32 1996/05/01 22:37:13 wessels Exp $ */ /* * DEBUG: Section 18 stat @@ -395,7 +395,7 @@ void info_get(obj, sentry) float f; f = squid_curtime - squid_starttime; storeAppendPrintf(sentry, "{\tConnections per hour:\t%.1f}\n", - f == 0.0 ? 0.0 : + f == 0.0 ? 0.0 : ((ntcpconn + nudpconn) / (f / 3600))); } diff --git a/src/store.cc b/src/store.cc index 4f55d001c9..2b1c19389e 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,5 +1,5 @@ -/* $Id: store.cc,v 1.63 1996/05/01 22:36:39 wessels Exp $ */ +/* $Id: store.cc,v 1.64 1996/05/01 22:37:14 wessels Exp $ */ /* * DEBUG: Section 20 store @@ -926,27 +926,27 @@ void storeAppend(e, data, len) } #if defined(__STRICT_ANSI__) -void storeAppendPrintf(StoreEntry *e, char *fmt, ...) +void storeAppendPrintf(StoreEntry * e, char *fmt,...) { - va_list args; - static char buf[4096]; - va_start(args, fmt); + va_list args; + static char buf[4096]; + va_start(args, fmt); #else void storeAppendPrintf(va_alist) - va_dcl -{ - va_list args; - StoreEntry *e = NULL; - char *fmt = NULL; - static char buf[4096]; - va_start(args); - e = va_arg(args, StoreEntry *); - fmt = va_arg(args, char *); + va_dcl +{ + va_list args; + StoreEntry *e = NULL; + char *fmt = NULL; + static char buf[4096]; + va_start(args); + e = va_arg(args, StoreEntry *); + fmt = va_arg(args, char *); #endif - buf[0] = '\0'; - vsprintf(buf, fmt, args); - storeAppend(e, buf, strlen(buf)); - va_end(args); + buf[0] = '\0'; + vsprintf(buf, fmt, args); + storeAppend(e, buf, strlen(buf)); + va_end(args); } -- 2.47.3