r1853 - trunk/varnish-cache/bin/varnishadm

des at projects.linpro.no des at projects.linpro.no
Sun Aug 19 19:17:58 CEST 2007


Author: des
Date: 2007-08-19 19:17:58 +0200 (Sun, 19 Aug 2007)
New Revision: 1853

Modified:
   trunk/varnish-cache/bin/varnishadm/varnishadm.c
Log:
Whitespace cleanup


Modified: trunk/varnish-cache/bin/varnishadm/varnishadm.c
===================================================================
--- trunk/varnish-cache/bin/varnishadm/varnishadm.c	2007-08-17 12:30:58 UTC (rev 1852)
+++ trunk/varnish-cache/bin/varnishadm/varnishadm.c	2007-08-19 17:17:58 UTC (rev 1853)
@@ -56,7 +56,7 @@
 	char *answer = NULL;
 	char buf[13];
 	char *p, *pp;
-	
+
 	XXXAZ(VSS_parse(T_arg, &addr, &port));
 	XXXAN(n = VSS_resolve(addr, port, &ta));
 	free(addr);
@@ -65,22 +65,22 @@
 		fprintf(stderr, "Could not open TELNET port\n");
 		exit(2);
 	}
-	
+
        sock = VSS_connect(ta[0]);
-	
+
 	for (i = 0; i < n; ++i) {
 		free(ta[i]);
 		ta[i] = NULL;
 	}
 	free(ta);
-	
+
 	for (i=0; i<argc; i++) {
 		if (i > 0)
 			write(sock, " ", 1);
 		write(sock, argv[i], strlen(argv[i]));
 	}
 	write(sock, "\n", 1);
-	
+
 	n = read(sock, buf, 13);
 	if (n != 13) {
 		fprintf(stderr, "An error occured in receiving status.\n");
@@ -99,7 +99,7 @@
 	}
 	*p = '\0';
 	bytes = strtol(pp, &p, 10);
-	
+
 	answer = malloc(bytes+1);
 	n = read(sock, answer, bytes);
 	if (n != bytes) {
@@ -108,14 +108,14 @@
 	}
 	answer[bytes] = '\0';
 	close(sock);
-	
+
 	if (status == STATUS_OK) {
 		printf("%s\n", answer);
 		exit(0);
 	}
 	fprintf(stderr, "Command failed with error code %ld\n", status);
 	exit(1);
-	
+
 }
 
 static void
@@ -131,7 +131,7 @@
 	int c;
 	const char *address = NULL;
 	int T_arg = 0;
-	
+
 	if (argc < 2)
 		usage();
 
@@ -145,12 +145,12 @@
 			usage();
 		}
 	}
-	
+
 	if (T_arg) {
 		if (optind == argc)
 			usage();
 		telnet_mgt(address, argc - optind, &argv[optind]);
 	}
-	
+
 	exit(0);
 }




More information about the varnish-commit mailing list