From: jca Date: Sat, 20 Aug 2016 19:08:57 +0000 (+0000) Subject: Declare all _asr_* debug functions as hidden. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8031c0b5a1d271c8c826c6459520f1bdc58e977a;p=openbsd Declare all _asr_* debug functions as hidden. Reported by & similar diff by guenther@ some time ago, ok eric@ --- 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 * @@ -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), \