summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-08-20 19:08:58 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-08-20 19:08:58 +0000
commit9426d787c0ef65ebce5124676b1116f1407a054c (patch)
tree228ca32c53c83e763679d6eb4bdb32351056a825 /lib
parent1cd875aa6e2e40c692ff83cf0ee1ec0967eefafd (diff)
Declare all _asr_* debug functions as hidden.
Reported by & similar diff by guenther@ some time ago, ok eric@
Diffstat (limited to 'lib')
-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), \