(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:
Assar Westerlund
1999-11-13 04:16:31 +00:00
parent 629f14698c
commit 2ddbca2548

View File

@@ -55,9 +55,11 @@ simple_passwd_quality (krb5_context context,
return NULL;
}
static const char* (*passwd_quality_check)(krb5_context,
krb5_principal,
krb5_data*) = simple_passwd_quality;
typedef const char* (*passwd_quality_check_func)(krb5_context,
krb5_principal,
krb5_data*);
static passwd_quality_check_func passwd_quality_check = simple_passwd_quality;
#ifdef HAVE_DLOPEN
extern const char *check_library;
@@ -137,7 +139,7 @@ kadm5_setup_passwd_quality_check(krb5_context context,
dlclose(handle);
return;
}
passwd_quality_check = sym;
passwd_quality_check = (passwd_quality_check_func) sym;
#endif /* HAVE_DLOPEN */
}