From ef9dbc9de4f8ed21503e5723b50a0d54c255f2fb Mon Sep 17 00:00:00 2001 From: tfheen Date: Mon, 2 Mar 2009 12:54:10 +0000 Subject: [PATCH] Fix compilation warnings git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3854 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishadm/varnishadm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/varnish-cache/bin/varnishadm/varnishadm.c b/varnish-cache/bin/varnishadm/varnishadm.c index 841529da..ff3384e1 100644 --- a/varnish-cache/bin/varnishadm/varnishadm.c +++ b/varnish-cache/bin/varnishadm/varnishadm.c @@ -93,8 +93,6 @@ telnet_mgt(const char *T_arg, int argc, char *argv[]) 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 @@ telnet_mgt(const char *T_arg, int argc, char *argv[]) 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 @@ telnet_mgt(const char *T_arg, int argc, char *argv[]) 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); } } -- 2.39.5