pkgsrc/net/arpwatch/patches/patch-ae

23 lines
617 B
Text
Raw Normal View History

$NetBSD: patch-ae,v 1.5 2005/12/05 20:50:44 rillig Exp $
--- report.c.orig 2000-10-01 01:41:10.000000000 +0200
+++ report.c 2005-10-25 13:07:21.000000000 +0200
@@ -70,6 +70,8 @@
#define PLURAL(n) ((n) == 1 || (n) == -1 ? "" : "s")
+char *Watcher;
+
static int cdepth; /* number of outstanding children */
static char *fmtdate(time_t);
@@ -240,7 +242,7 @@
register FILE *f;
char tempfile[64], cpu[64], os[64];
char *fmt = "%20s: %s\n";
- char *watcher = WATCHER;
+ char *watcher = Watcher ? Watcher : WATCHER;
char *watchee = WATCHEE;
char *sendmail = PATH_SENDMAIL;
char *unknown = "<unknown>";