summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-02-04 12:05:27 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-02-04 12:05:27 +0000
commitfb05d07dafb11d39c0ddc99ed64460616651535f (patch)
tree55f26d0747108fa2297620fd7e7a10e5709d66b0 /usr.sbin
parent77249efbf815617917e88dde4b600b107c1a1366 (diff)
Move the declaration of DPRINTF from relay.c too relayd.h so it can be
reused; ok reyk@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/relayd/relay.c8
-rw-r--r--usr.sbin/relayd/relayd.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c
index 5f01a3a5fe1..0086cf66fa6 100644
--- a/usr.sbin/relayd/relay.c
+++ b/usr.sbin/relayd/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.80 2008/01/31 12:12:50 thib Exp $ */
+/* $OpenBSD: relay.c,v 1.81 2008/02/04 12:05:26 thib Exp $ */
/*
* Copyright (c) 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -138,12 +138,6 @@ struct imsgbuf *ibuf_pfe;
struct imsgbuf *ibuf_main;
int proc_id;
-#if DEBUG > 1
-#define DPRINTF log_debug
-#else
-#define DPRINTF(x...) do { } while(0)
-#endif
-
void
relay_sig_handler(int sig, short event, void *arg)
{
diff --git a/usr.sbin/relayd/relayd.h b/usr.sbin/relayd/relayd.h
index 634470a4e90..8b01ed8207c 100644
--- a/usr.sbin/relayd/relayd.h
+++ b/usr.sbin/relayd/relayd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayd.h,v 1.94 2008/02/04 12:01:33 thib Exp $ */
+/* $OpenBSD: relayd.h,v 1.95 2008/02/04 12:05:26 thib Exp $ */
/*
* Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -56,6 +56,12 @@
#define PURGE_PROTOS 0x08
#define PURGE_EVERYTHING 0xff
+#if DEBUG > 1
+#define DPRINTF log_debug
+#else
+#define DPRINTF(x...) do {} while(0)
+#endif
+
/* buffer */
struct buf {
TAILQ_ENTRY(buf) entry;