]> granicus.if.org Git - libtirpc/commit
Fix debugging reference from non-GSS to optional GSS code.
authorNick Alcock <nick.alcock@oracle.com>
Thu, 26 Apr 2012 19:12:08 +0000 (15:12 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 26 Apr 2012 19:54:02 +0000 (15:54 -0400)
commitf8104ba924be47dd8147d6334d5565550e3c847b
tree11874703a1aa1a1936c708684cbf51d7c8181886
parent9a00d8b6adef347619ab13b15303b523d78ca02f
Fix debugging reference from non-GSS to optional GSS code.

From: Nick Alcock <nick.alcock@oracle.com>

AUTH_DESTROY() and auth_destroy() are pulling in log_debug() from
authgss_prot.c, but are used from outside the GSS code, thus preventing
libtirpc
from being used if compiled without GSS support.

The (somewhat ugly) fix here defines a new macro to do the job. Because
we're
not compiling as C99, I use the GNU C variadic macro extension: if we
mean to
be compiled with other compilers, this needs to change.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
tirpc/rpc/auth.h