X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fpopsbr.c;h=eec025dc46584ac962c72e3404a0bd52a5cdce37;hb=7736b0a60c15cc20db0ba8c3e0fe8e11d1c78c20;hp=6b026c6ecf57161d331ff0ba643198ec47c4a0cf;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/uip/popsbr.c b/uip/popsbr.c index 6b026c6..eec025d 100644 --- a/uip/popsbr.c +++ b/uip/popsbr.c @@ -7,6 +7,9 @@ #include +extern int client(char *args, char *protocol, char *service, int rproto, + char *response, int len_response); + #if defined(NNTP) && !defined(PSHSBR) # undef NNTP #endif @@ -22,12 +25,11 @@ #include #include #include +#include #define TRM "." #define TRMLEN (sizeof TRM - 1) -extern int errno; - static int poprint = 0; static int pophack = 0; @@ -570,7 +572,7 @@ vcommand (const char *fmt, va_list ap) char *cp, buffer[BUFSIZ]; vsnprintf (buffer, sizeof(buffer), fmt, ap); - if (poprint) + if (poprint) { if (pophack) { if ((cp = strchr (buffer, ' '))) *cp = 0; @@ -581,6 +583,7 @@ vcommand (const char *fmt, va_list ap) } else fprintf (stderr, "---> %s\n", buffer); + } if (putline (buffer, output) == NOTOK) return NOTOK;