diff options
author | Karl Ramm <kcr@1ts.org> | 2009-04-30 17:08:38 +0000 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2009-04-30 17:08:38 +0000 |
commit | 71115288fd46ed53af54805b7a8d718029ca9455 (patch) | |
tree | 118e7d2fe104680680e4371ba033fe61ae9363aa /lib | |
parent | aab602b420a61bc5d8c7b06da7f50b0561a32cc9 (diff) |
fix some conditional-compilation issues that trip -Wunreachable-code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ZCkZAut.c | 4 | ||||
-rw-r--r-- | lib/ZExpnRlm.c | 5 |
2 files changed, 5 insertions, 4 deletions
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 } |