summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relayd.h
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/relayd/relayd.h
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/relayd/relayd.h')
-rw-r--r--usr.sbin/relayd/relayd.h8
1 files changed, 7 insertions, 1 deletions
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;