mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-getkeytab: fix compiler warnings
Make read_ipa_config and filter_keys static to avoid "no previous prototype" warnings. Use correct datatype of return value for ber_scanf to correct different signedness comparision. Fixed while working on https://pagure.io/freeipa/issue/8478 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
ae05970ea7
commit
fece03d446
@ -291,7 +291,7 @@ static int ldap_sasl_interact(LDAP *ld, unsigned flags, void *priv_data, void *s
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int filter_keys(krb5_context krbctx, struct keys_container *keys,
|
static int filter_keys(krb5_context krbctx, struct keys_container *keys,
|
||||||
ber_int_t *enctypes)
|
ber_int_t *enctypes)
|
||||||
{
|
{
|
||||||
struct krb_key_salt *ksdata;
|
struct krb_key_salt *ksdata;
|
||||||
@ -507,7 +507,7 @@ static int ldap_set_keytab(krb5_context krbctx,
|
|||||||
BerElement *sctrl = NULL;
|
BerElement *sctrl = NULL;
|
||||||
struct berval *control = NULL;
|
struct berval *control = NULL;
|
||||||
LDAPControl **srvctrl = NULL;
|
LDAPControl **srvctrl = NULL;
|
||||||
int ret;
|
ber_tag_t ret;
|
||||||
int kvno, i;
|
int kvno, i;
|
||||||
ber_tag_t rtag;
|
ber_tag_t rtag;
|
||||||
ber_int_t *encs = NULL;
|
ber_int_t *encs = NULL;
|
||||||
@ -826,7 +826,7 @@ static int config_from_file(struct ini_cfgobj *cfgctx)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int read_ipa_config(struct ipa_config **ipacfg)
|
static int read_ipa_config(struct ipa_config **ipacfg)
|
||||||
{
|
{
|
||||||
struct ini_cfgobj *cfgctx = NULL;
|
struct ini_cfgobj *cfgctx = NULL;
|
||||||
struct value_obj *obj = NULL;
|
struct value_obj *obj = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user