[4.0] ade4dff Fix whitespace

Martin Blix Grydeland martin at varnish-software.com
Thu Mar 13 10:24:22 CET 2014


commit ade4dff380ff5be428ea2914ab9065d62968e614
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Wed Jan 29 11:31:25 2014 +0100

    Fix whitespace

diff --git a/bin/varnishtop/varnishtop.c b/bin/varnishtop/varnishtop.c
index 05f9357..8be6c36 100644
--- a/bin/varnishtop/varnishtop.c
+++ b/bin/varnishtop/varnishtop.c
@@ -141,7 +141,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 			rd = calloc(len+1, 1);
 			AN(rd);
 			memcpy(rd, VSL_CDATA(tr->c->rec.ptr), len);
-            rd[len] = '\0';
+			rd[len] = '\0';
 			t.rec_data = rd;
 
 			AZ(pthread_mutex_lock(&mtx));
@@ -151,7 +151,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 				tp->count += 1.0;
 				/* Reinsert to rebalance */
 				VRB_INSERT(top_tree, &top_tree_head, tp);
-                free(rd);
+				free(rd);
 			} else {
 				ntop++;
 				tp = calloc(sizeof *tp, 1);
@@ -160,7 +160,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 				tp->count = 1.0;
 				tp->clen = len;
 				tp->tag = tag;
-                tp->rec_data = rd;
+				tp->rec_data = rd;
 				VRB_INSERT(top_tree, &top_tree_head, tp);
 			}
 			AZ(pthread_mutex_unlock(&mtx));



More information about the varnish-commit mailing list