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));
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);
}
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);
}
}