r3854 - trunk/varnish-cache/bin/varnishadm

tfheen at projects.linpro.no tfheen at projects.linpro.no
Mon Mar 2 13:54:11 CET 2009


Author: tfheen
Date: 2009-03-02 13:54:10 +0100 (Mon, 02 Mar 2009)
New Revision: 3854

Modified:
   trunk/varnish-cache/bin/varnishadm/varnishadm.c
Log:
Fix compilation warnings


Modified: trunk/varnish-cache/bin/varnishadm/varnishadm.c
===================================================================
--- trunk/varnish-cache/bin/varnishadm/varnishadm.c	2009-03-02 12:04:04 UTC (rev 3853)
+++ trunk/varnish-cache/bin/varnishadm/varnishadm.c	2009-03-02 12:54:10 UTC (rev 3854)
@@ -93,8 +93,6 @@
 	int sock;
 	long status, bytes;
 	char *answer = NULL;
-	char buf[13];
-	char *p, *pp;
 
 	XXXAZ(VSS_parse(T_arg, &addr, &port));
 	XXXAN(n = VSS_resolve(addr, port, &ta));
@@ -116,7 +114,7 @@
 	write(sock, "ping\n", 5);
 	parse_reply(sock, &status, &bytes, &answer);
 	if (status != 200) {
-			fprintf(stderr, "No pong received from server\n", status);
+			fprintf(stderr, "No pong received from server\n");
 			exit(1);
 	}
 
@@ -126,7 +124,7 @@
 		free(answer);
 		parse_reply(sock, &status, &bytes, &answer);
 		if (status != 200 || strstr(answer, "PONG") == NULL) {
-			fprintf(stderr, "No pong received from server\n", status);
+			fprintf(stderr, "No pong received from server\n");
 			exit(1);
 		}
 	}



More information about the varnish-commit mailing list