summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2016-08-20 19:08:57 +0000
committerjca <jca@openbsd.org>2016-08-20 19:08:57 +0000
commit8031c0b5a1d271c8c826c6459520f1bdc58e977a (patch)
tree7ce988ff7e5ff444c2550b393aee1fb52c0c0fa2 /lib/libc
parentalready in v2 according to http://www.tuhs.org/Archive/PDP-11/Distributions/research/1972_stuff/unix_2nd_edition_manual.pdf (diff)
downloadwireguard-openbsd-8031c0b5a1d271c8c826c6459520f1bdc58e977a.tar.xz
wireguard-openbsd-8031c0b5a1d271c8c826c6459520f1bdc58e977a.zip
Declare all _asr_* debug functions as hidden.
Reported by & similar diff by guenther@ some time ago, ok eric@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/asr/asr_private.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/asr/asr_private.h b/lib/libc/asr/asr_private.h
index 76c758f74e2..a8b152f602c 100644
--- a/lib/libc/asr/asr_private.h
+++ b/lib/libc/asr/asr_private.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asr_private.h,v 1.38 2015/12/16 16:32:30 deraadt Exp $ */
+/* $OpenBSD: asr_private.h,v 1.39 2016/08/20 19:08:57 jca Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -341,6 +341,13 @@ int _asr_iter_domain(struct asr_query *, const char *, char *, size_t);
fprintf(_asr_debug, "--------------\n"); \
} } while (0)
+#else /* DEBUG */
+
+#define DPRINT(...)
+#define DPRINT_PACKET(...)
+
+#endif /* DEBUG */
+
const char *_asr_querystr(int);
const char *_asr_statestr(int);
const char *_asr_transitionstr(int);
@@ -350,13 +357,6 @@ void _asr_dump_packet(FILE *, const void *, size_t);
extern FILE *_asr_debug;
-#else /* DEBUG */
-
-#define DPRINT(...)
-#define DPRINT_PACKET(...)
-
-#endif /* DEBUG */
-
#define async_set_state(a, s) do { \
DPRINT("asr: [%s@%p] %s -> %s\n", \
_asr_querystr((a)->as_type), \