(kadm5_setup_passwd_quality_check): use correct types for function
pointers git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7373 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -55,9 +55,11 @@ simple_passwd_quality (krb5_context context,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char* (*passwd_quality_check)(krb5_context,
|
typedef const char* (*passwd_quality_check_func)(krb5_context,
|
||||||
krb5_principal,
|
krb5_principal,
|
||||||
krb5_data*) = simple_passwd_quality;
|
krb5_data*);
|
||||||
|
|
||||||
|
static passwd_quality_check_func passwd_quality_check = simple_passwd_quality;
|
||||||
|
|
||||||
#ifdef HAVE_DLOPEN
|
#ifdef HAVE_DLOPEN
|
||||||
extern const char *check_library;
|
extern const char *check_library;
|
||||||
@@ -137,7 +139,7 @@ kadm5_setup_passwd_quality_check(krb5_context context,
|
|||||||
dlclose(handle);
|
dlclose(handle);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
passwd_quality_check = sym;
|
passwd_quality_check = (passwd_quality_check_func) sym;
|
||||||
#endif /* HAVE_DLOPEN */
|
#endif /* HAVE_DLOPEN */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user