fix calling conventions
When a function is assigned to a function pointer that is declared with a particular calling convention, then the assigned function must be declared with that calling convention as well. Otherwise, kaboom!!! The following functions are fixed by this change: kuser/kx509.c validate1() add1_2chain() lib/base/log.c log_syslog() close_syslog() log_file() close_file() lib/gssapi/mech/context.c gss_set_log_function() lib/krb5/kx509.c certs_export_func() Change-Id: Ib68abf739e3385e98136fa4e4f5a0240e9fce033
This commit is contained in:

committed by
Nicolas Williams

parent
e3dbc89f8f
commit
afc9ebe08b
@@ -44,7 +44,7 @@ struct validate_store {
|
||||
int grace;
|
||||
};
|
||||
|
||||
static int
|
||||
static int KRB5_CALLCONV
|
||||
validate1(hx509_context hx509ctx, void *d, hx509_cert cert)
|
||||
{
|
||||
struct validate_store *v = d;
|
||||
@@ -111,7 +111,7 @@ validate(krb5_context context,
|
||||
hx509_context_free(&hx509ctx);
|
||||
}
|
||||
|
||||
static krb5_error_code
|
||||
static krb5_error_code KRB5_CALLCONV
|
||||
add1_2chain(hx509_context hx509ctx, void *d, hx509_cert cert)
|
||||
{
|
||||
heim_octet_string os;
|
||||
|
Reference in New Issue
Block a user