From: Greg Hudson Date: Thu, 29 Sep 2016 19:41:04 +0000 (-0400) Subject: Fix use_dns_uri() type safety X-Git-Tag: krb5-1.15-beta1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f648205247da436893dae97dd7949053da927af4;p=thirdparty%2Fkrb5.git Fix use_dns_uri() type safety profile_get_boolean() outputs an int, not a krb5_boolean. Adjust the local variable "use" to match, or we get a warning. Reported by Will Fiveash. ticket: 8502 --- diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c index 5d74c8315e..014ec6ecb9 100644 --- a/src/lib/krb5/os/locate_kdc.c +++ b/src/lib/krb5/os/locate_kdc.c @@ -75,7 +75,7 @@ static krb5_boolean use_dns_uri(krb5_context ctx) { krb5_error_code ret; - krb5_boolean use; + int use; ret = profile_get_boolean(ctx->profile, KRB5_CONF_LIBDEFAULTS, KRB5_CONF_DNS_URI_LOOKUP, NULL,