[master] a3c4079 Line break and whitespace fixes

Martin Blix Grydeland martin at varnish-software.com
Tue Feb 25 15:58:40 CET 2014


commit a3c40796003fc7cedf8e86c5684d76fd20d1a3c4
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Tue Feb 4 15:58:01 2014 +0100

    Line break and whitespace fixes

diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index 3bc1a3a..87558e1 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -108,8 +108,7 @@ struct profile {
 	int field;
 	int hist_low;
 	int hist_high;
-} 
-
+}
 profiles[] = {
 	{
 		.name = "responsetime",
@@ -206,7 +205,8 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 			tag = VSL_TAG(tr->c->rec.ptr);
 			assert(match_tag >= 0);
 			if (tag == (unsigned)match_tag) {
-				i = sscanf(VSL_CDATA(tr->c->rec.ptr), format, &value);
+				i = sscanf(VSL_CDATA(tr->c->rec.ptr), format,
+				    &value);
 				assert(i == 1);
 			} else if (tag == SLT_Hit)
 				hit = 1;
@@ -361,9 +361,11 @@ main(int argc, char **argv)
 				break;
 			}
 			/* else it's a definition, we hope */
-			if (sscanf(colon+1, "%d:%d:%d", 
-					&cli_p.field, &cli_p.hist_low, &cli_p.hist_high) != 3) {
-				fprintf(stderr, "%s is neither a profile name nor definition (SLT_Tag:field:min:max)\n", optarg);
+			if (sscanf(colon+1, "%d:%d:%d",	&cli_p.field,
+				&cli_p.hist_low, &cli_p.hist_high) != 3) {
+				fprintf(stderr, "%s is neither a profile name"
+				    "nor definition (SLT_Tag:field:min:max)\n",
+				    optarg);
 				exit(1);
 			}
 



More information about the varnish-commit mailing list