From: tfheen Date: Mon, 2 Mar 2009 12:54:10 +0000 (+0000) Subject: Fix compilation warnings X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef9dbc9de4f8ed21503e5723b50a0d54c255f2fb;p=varnish Fix compilation warnings git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3854 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- 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); } }