r5127 - in trunk/varnish-cache: bin/varnishadm bin/varnishd bin/varnishstat bin/varnishtest include lib/libvarnish lib/libvarnishapi lib/libvcl

phk at varnish-cache.org phk at varnish-cache.org
Wed Aug 25 11:19:43 CEST 2010


Author: phk
Date: 2010-08-25 11:19:43 +0200 (Wed, 25 Aug 2010)
New Revision: 5127

Modified:
   trunk/varnish-cache/bin/varnishadm/varnishadm.c
   trunk/varnish-cache/bin/varnishd/cache_backend_poll.c
   trunk/varnish-cache/bin/varnishd/cache_center.c
   trunk/varnish-cache/bin/varnishd/cache_dir_dns.c
   trunk/varnish-cache/bin/varnishd/cache_fetch.c
   trunk/varnish-cache/bin/varnishd/cache_vcl.c
   trunk/varnish-cache/bin/varnishd/mgt_shmem.c
   trunk/varnish-cache/bin/varnishd/mgt_vcc.c
   trunk/varnish-cache/bin/varnishstat/varnishstat_curses.c
   trunk/varnish-cache/bin/varnishtest/vtc_http.c
   trunk/varnish-cache/include/varnishapi.h
   trunk/varnish-cache/lib/libvarnish/vtmpfile.c
   trunk/varnish-cache/lib/libvarnishapi/vsl.c
   trunk/varnish-cache/lib/libvcl/vcc_backend.c
   trunk/varnish-cache/lib/libvcl/vcc_dir_dns.c
   trunk/varnish-cache/lib/libvcl/vcc_expr.c
   trunk/varnish-cache/lib/libvcl/vcc_parse.c
Log:
white-space anal-retentive fixup



Modified: trunk/varnish-cache/bin/varnishadm/varnishadm.c
===================================================================
--- trunk/varnish-cache/bin/varnishadm/varnishadm.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/bin/varnishadm/varnishadm.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -241,7 +241,7 @@
 	}
 	if (S_arg == NULL) {
 		p = VSM_Find_Chunk(vsd, "Arg", "-S", "", NULL);
-		if (p != NULL) 
+		if (p != NULL)
 			S_arg = strdup(p);
 	}
 	sock = -1;
@@ -250,7 +250,7 @@
 		AN(p);
 		*p = '\0';
 		sock = cli_sock(T_arg, S_arg);
-		if (sock >= 0) 
+		if (sock >= 0)
 			break;
 		T_arg = p + 1;
 	}

Modified: trunk/varnish-cache/bin/varnishd/cache_backend_poll.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_backend_poll.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/bin/varnishd/cache_backend_poll.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -77,7 +77,7 @@
 	struct vrt_backend_probe	probe;
 	int				stop;
 	struct vsb			*vsb;
-	char				*req;	
+	char				*req;
 	int				req_len;
 
 	char				resp_buf[128];

Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -262,7 +262,7 @@
 	WSL_Flush(sp->wrk, 0);
 
 	/* If we did an ESI include, don't mess up our state */
-	if (sp->esis > 0) 
+	if (sp->esis > 0)
 		return (1);
 
 	memset(&sp->acct_req, 0, sizeof sp->acct_req);

Modified: trunk/varnish-cache/bin/varnishd/cache_dir_dns.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_dir_dns.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/bin/varnishd/cache_dir_dns.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -55,12 +55,12 @@
 #define VDI_DNS_MAX_CACHE		1024
 #define VDI_DNS_GROUP_MAX_BACKENDS	1024
 
-/* DNS Cache entry 
+/* DNS Cache entry
  */
 struct vdi_dns_hostgroup {
 	unsigned			magic;
 #define VDI_DNSDIR_MAGIC		0x1bacab21
-	char 				*hostname;
+	char				*hostname;
 	struct director			*hosts[VDI_DNS_GROUP_MAX_BACKENDS];
 	unsigned			nhosts;
 	unsigned			next_host; /* Next to use...*/
@@ -85,7 +85,7 @@
 
 /* Compare an IPv4 backend to a IPv4 addr/len */
 static int
-vdi_dns_comp_addrinfo4(const struct backend *bp, 
+vdi_dns_comp_addrinfo4(const struct backend *bp,
 		       const struct sockaddr_in *addr,
 		       const socklen_t len)
 {
@@ -226,7 +226,7 @@
 		if (vdi_dns_groupmatch(hostgr, hostname)) {
 			ret = (vdi_dns_pick_host(sp, hostgr));
 			*backend = ret;
-			if (*backend != NULL) 
+			if (*backend != NULL)
 				CHECK_OBJ_NOTNULL(*backend, DIRECTOR_MAGIC);
 			return 1;
 		}
@@ -274,7 +274,7 @@
 
 	if (vdi_dns_cache_has(sp, vs, hostname, backend, 1))
 		return 1;
-	
+
 	memset(&hint, 0, sizeof hint);
 	hint.ai_family = PF_UNSPEC;
 	hint.ai_socktype = SOCK_STREAM;
@@ -311,7 +311,7 @@
 
 	new->nhosts = host;
 	vdi_dns_cache_list_add(sp, vs, new);
-	*backend = vdi_dns_pick_host(sp, new);	
+	*backend = vdi_dns_pick_host(sp, new);
 	return 1;
 }
 
@@ -367,7 +367,7 @@
 	if (http_GetHdr(hp, H_Host, &p) == 0)
 		return (NULL);
 
-	/* We need a working copy since it's going to be modified */	
+	/* We need a working copy since it's going to be modified */
 	strncpy(hostname, p, sizeof(hostname));
 
 	/* remove port-portion of the Host-header, if present. */
@@ -399,7 +399,7 @@
 	dir = vdi_dns_find_backend(sp, vs);
 	if (!dir || !VDI_Healthy_sp(sp, dir))
 		return (NULL);
-	
+
 	vbe = VDI_GetFd(dir, sp);
 	return (vbe);
 }

Modified: trunk/varnish-cache/bin/varnishd/cache_fetch.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_fetch.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/bin/varnishd/cache_fetch.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -367,7 +367,6 @@
 	vc = sp->vbc;
 	if (vc->recycled)
 		retry = 1;
-		
 
 	/*
 	 * Now that we know our backend, we can set a default Host:

Modified: trunk/varnish-cache/bin/varnishd/cache_vcl.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_vcl.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/bin/varnishd/cache_vcl.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -305,7 +305,7 @@
 	Lck_Unlock(&vcl_mtx);
 
 	/* Tickle this VCL's backends to take over health polling */
-	for(i = 1; i < vcl->conf->ndirector; i++) 
+	for(i = 1; i < vcl->conf->ndirector; i++)
 		VBE_UseHealth(vcl->conf->director[i]);
 }
 

Modified: trunk/varnish-cache/bin/varnishd/mgt_shmem.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_shmem.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/bin/varnishd/mgt_shmem.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -38,7 +38,7 @@
  *		|
  *		v
  *      Open old VSM,
- *	check pid 	--------> exit/fail (-n message)
+ *	check pid	--------> exit/fail (-n message)
  *		|
  *		+<----------------------+
  *		|			^
@@ -81,7 +81,7 @@
  *		|		|
  *		v		|
  *		+-------------->+
- *		
+ *
  */
 
 #include "config.h"

Modified: trunk/varnish-cache/bin/varnishd/mgt_vcc.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_vcc.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/bin/varnishd/mgt_vcc.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -277,7 +277,7 @@
 	(void)unlink(sf);
 	vsb_delete(cmdsb);
 
-	if (!i) 
+	if (!i)
 		i = SUB_run(sb, run_dlopen, of, "dlopen", 10);
 
 	if (i) {

Modified: trunk/varnish-cache/bin/varnishstat/varnishstat_curses.c
===================================================================
--- trunk/varnish-cache/bin/varnishstat/varnishstat_curses.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/bin/varnishstat/varnishstat_curses.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -223,7 +223,7 @@
 					AC(mvprintw(line, 0, "  %010.10jx <",
 					    (ju >> 24) & 0xffffffffffLL));
 					for (ch = 0x800000; ch; ch >>= 1)
-						if (ju & ch)	
+						if (ju & ch)
 							AC(printw("V"));
 						else
 							AC(printw("_"));

Modified: trunk/varnish-cache/bin/varnishtest/vtc_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_http.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/bin/varnishtest/vtc_http.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -508,8 +508,8 @@
 	int bodylen = 0;
 	char *b, *c;
 	char *body = NULL, *nullbody;
-	
 
+
 	(void)cmd;
 	(void)vl;
 	CAST_OBJ_NOTNULL(hp, priv, HTTP_MAGIC);

Modified: trunk/varnish-cache/include/varnishapi.h
===================================================================
--- trunk/varnish-cache/include/varnishapi.h	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/include/varnishapi.h	2010-08-25 09:19:43 UTC (rev 5127)
@@ -54,7 +54,7 @@
 	 * You can have multiple active VSL_data handles at the same time
 	 * referencing the same or different shared memory files.
 	 * Returns:
-	 * 	Pointer to usable VSL_data handle.
+	 *	Pointer to usable VSL_data handle.
 	 */
 
 typedef void vsm_diag_f(void *priv, const char *fmt, ...);
@@ -96,7 +96,7 @@
 	 * If diag is non-zero, diagnostics are emitted.
 	 * Returns:
 	 *	0 on success
-	 * 	!= 0 on failure
+	 *	!= 0 on failure
 	 */
 
 int VSM_ReOpen(struct VSM_data *vd, int diag);
@@ -161,7 +161,7 @@
 
 int VSC_Arg(struct VSM_data *vd, int arg, const char *opt);
 	/*
-	 * Handle standard stat-presenter arguments 
+	 * Handle standard stat-presenter arguments
 	 * Return:
 	 *	-1 error
 	 *	 0 not handled
@@ -212,9 +212,9 @@
 	 * If diag is non-zero, diagnostics are emitted.
 	 * Returns:
 	 *	0 on success
-	 * 	!= 0 on failure
+	 *	!= 0 on failure
 	 */
-	
+
 #define VSL_ARGS	"bCcdI:i:k:n:r:s:X:x:"
 #define VSL_b_USAGE	"[-b]"
 #define VSL_c_USAGE	"[-c]"
@@ -229,18 +229,18 @@
 #define VSL_x_USAGE	"[-x tag]"
 #define VSL_X_USAGE	"[-X regexp]"
 #define VSL_USAGE	"[-bCcd] "		\
-			VSL_i_USAGE " " 	\
+			VSL_i_USAGE " "		\
 			VSL_I_USAGE " "		\
 			VSL_k_USAGE " "		\
 			VSL_n_USAGE " "		\
 			VSL_r_USAGE " "		\
 			VSL_s_USAGE " "		\
 			VSL_X_USAGE " "		\
-			VSL_x_USAGE 
-			
+			VSL_x_USAGE
+
 int VSL_Arg(struct VSM_data *vd, int arg, const char *opt);
 	/*
-	 * Handle standard log-presenter arguments 
+	 * Handle standard log-presenter arguments
 	 * Return:
 	 *	-1 error
 	 *	 0 not handled

Modified: trunk/varnish-cache/lib/libvarnish/vtmpfile.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/vtmpfile.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/lib/libvarnish/vtmpfile.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -110,7 +110,7 @@
 	else if (pfx != NULL) {
 		bprintf(fnb, "/%s/%s", pfx, fn); /* XXX: graceful length check */
 		fd = open(fnb, O_RDONLY);
-	} else 
+	} else
 		fd = open(fn, O_RDONLY);
 	if (fd < 0)
 		return (NULL);

Modified: trunk/varnish-cache/lib/libvarnishapi/vsl.c
===================================================================
--- trunk/varnish-cache/lib/libvarnishapi/vsl.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/lib/libvarnishapi/vsl.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -66,7 +66,7 @@
 VSL_Setup(struct VSM_data *vd)
 {
 	struct vsl *vsl;
-        
+
 	CHECK_OBJ_NOTNULL(vd, VSM_MAGIC);
 	AZ(vd->vsc);
 	AZ(vd->vsl);

Modified: trunk/varnish-cache/lib/libvcl/vcc_backend.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_backend.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/lib/libvcl/vcc_backend.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -578,7 +578,7 @@
 
 	/* Check that the hostname makes sense */
 	assert(t_host != NULL);
-	if (t_port != NULL) 
+	if (t_port != NULL)
 		Emit_Sockaddr(tl, t_host, t_port->dec);
 	else
 		Emit_Sockaddr(tl, t_host, "80");

Modified: trunk/varnish-cache/lib/libvcl/vcc_dir_dns.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_dir_dns.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/lib/libvcl/vcc_dir_dns.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -139,7 +139,7 @@
  * uint8_ts.
  */
 static void
-vcc_dir_dns_makebackend(struct vcc *tl, 
+vcc_dir_dns_makebackend(struct vcc *tl,
 			int *serial,
 			const unsigned char a[],
 			int inmask)

Modified: trunk/varnish-cache/lib/libvcl/vcc_expr.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_expr.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/lib/libvcl/vcc_expr.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -309,7 +309,7 @@
 				vcc_ErrWhere(tl, top);
 				return;
 			}
-		} else 
+		} else
 			break;
 		lfmt = afmt;
 	}

Modified: trunk/varnish-cache/lib/libvcl/vcc_parse.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_parse.c	2010-08-25 09:01:05 UTC (rev 5126)
+++ trunk/varnish-cache/lib/libvcl/vcc_parse.c	2010-08-25 09:19:43 UTC (rev 5127)
@@ -225,7 +225,7 @@
 		vcc_Cond_3(tl);
 		Fb(tl, 1, ")\n");
 		return;
-	} 
+	}
 	vsb_printf(tl->sb,
 	    "Syntax error in condition.\n"
 	    "Expected '(', '!' or variable name.\n"




More information about the varnish-commit mailing list