From 71115288fd46ed53af54805b7a8d718029ca9455 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Thu, 30 Apr 2009 17:08:38 +0000 Subject: fix some conditional-compilation issues that trip -Wunreachable-code --- lib/ZCkZAut.c | 4 ++-- lib/ZExpnRlm.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/ZCkZAut.c b/lib/ZCkZAut.c index eddb547..dac17e9 100644 --- a/lib/ZCkZAut.c +++ b/lib/ZCkZAut.c @@ -190,7 +190,7 @@ Code_t ZCheckZcodeAuthentication(ZNotice_t *notice, return ZAUTH_YES; else return ZAUTH_FAILED; -#endif /* HAVE_KRB5 */ - +#else /* HAVE_KRB5 */ return (notice->z_auth ? ZAUTH_YES : ZAUTH_NO); +#endif } diff --git a/lib/ZExpnRlm.c b/lib/ZExpnRlm.c index 36a9f4b..1b752a9 100644 --- a/lib/ZExpnRlm.c +++ b/lib/ZExpnRlm.c @@ -26,7 +26,7 @@ char *realm; expand[sizeof(expand)-1] = '\0'; result = krb5_free_host_realm(Z_krb5_ctx, list_realms); return expand; -#endif +#else #ifndef HAVE_KRB4 struct hostent *he; @@ -97,5 +97,6 @@ char *realm; return(krb_realm); } } -#endif /* KERBEROS */ +#endif /* HAVE_KRB4 */ +#endif } -- cgit v1.2.3