#include <h/popsbr.h>
#include <h/signals.h>
#include <signal.h>
+#include <errno.h>
#define TRM "."
#define TRMLEN (sizeof TRM - 1)
-extern int errno;
-
static int poprint = 0;
static int pophack = 0;
char *cp, buffer[BUFSIZ];
vsnprintf (buffer, sizeof(buffer), fmt, ap);
- if (poprint)
+ if (poprint) {
if (pophack) {
if ((cp = strchr (buffer, ' ')))
*cp = 0;
}
else
fprintf (stderr, "---> %s\n", buffer);
+ }
if (putline (buffer, output) == NOTOK)
return NOTOK;