]> err.no Git - varnish/commitdiff
Fix compilation warnings
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 2 Mar 2009 12:54:10 +0000 (12:54 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 2 Mar 2009 12:54:10 +0000 (12:54 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3854 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishadm/varnishadm.c

index 841529daecb33e38da32133b58c86534b264e631..ff3384e126828724488aa42091f775d4bd8cdd7b 100644 (file)
@@ -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);
                }
        }