projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replaced the BIND guess (based on BSDishness) with checks for gethostbyname and setho...
[mmh]
/
uip
/
popsbr.c
diff --git
a/uip/popsbr.c
b/uip/popsbr.c
index
6b026c6
..
f86d5d3
100644
(file)
--- a/
uip/popsbr.c
+++ b/
uip/popsbr.c
@@
-22,12
+22,11
@@
#include <h/popsbr.h>
#include <h/signals.h>
#include <signal.h>
#include <h/popsbr.h>
#include <h/signals.h>
#include <signal.h>
+#include <errno.h>
#define TRM "."
#define TRMLEN (sizeof TRM - 1)
#define TRM "."
#define TRMLEN (sizeof TRM - 1)
-extern int errno;
-
static int poprint = 0;
static int pophack = 0;
static int poprint = 0;
static int pophack = 0;
@@
-570,7
+569,7
@@
vcommand (const char *fmt, va_list ap)
char *cp, buffer[BUFSIZ];
vsnprintf (buffer, sizeof(buffer), fmt, ap);
char *cp, buffer[BUFSIZ];
vsnprintf (buffer, sizeof(buffer), fmt, ap);
- if (poprint)
+ if (poprint) {
if (pophack) {
if ((cp = strchr (buffer, ' ')))
*cp = 0;
if (pophack) {
if ((cp = strchr (buffer, ' ')))
*cp = 0;
@@
-581,6
+580,7
@@
vcommand (const char *fmt, va_list ap)
}
else
fprintf (stderr, "---> %s\n", buffer);
}
else
fprintf (stderr, "---> %s\n", buffer);
+ }
if (putline (buffer, output) == NOTOK)
return NOTOK;
if (putline (buffer, output) == NOTOK)
return NOTOK;