From 278cd6330631b99bab52ffbd22527501a1b68e5e Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 11 Apr 2016 00:30:26 -0500 Subject: [PATCH] lib/hdb: hdb_method functions !KRB5_LIB_CALL The hdb_method functions cannot be KRB5_LIB_CALL as lib/hdb is not lib/krb5. KRB5_LIB_CALL will be inconsistently defined. This inconsistency resulted in crashes of test_hdbplugin on 32-bit Windows. Change-Id: I4cf8d3ef76f31a3cae923df234a19610d956e7ee --- lib/hdb/hdb.h | 4 ++-- lib/hdb/test_hdbplugin.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hdb/hdb.h b/lib/hdb/hdb.h index c1654a170..892b8e598 100644 --- a/lib/hdb/hdb.h +++ b/lib/hdb/hdb.h @@ -277,8 +277,8 @@ typedef struct HDB { struct hdb_method { int version; - krb5_error_code (KRB5_LIB_CALL *init)(krb5_context, void **); - void (KRB5_LIB_CALL *fini)(void *); + krb5_error_code (*init)(krb5_context, void **); + void (*fini)(void *); const char *prefix; krb5_error_code (*create)(krb5_context, HDB **, const char *filename); }; diff --git a/lib/hdb/test_hdbplugin.c b/lib/hdb/test_hdbplugin.c index e79572b93..7cc6e852e 100644 --- a/lib/hdb/test_hdbplugin.c +++ b/lib/hdb/test_hdbplugin.c @@ -39,7 +39,7 @@ struct hdb_called { }; struct hdb_called testresult; -static krb5_error_code KRB5_LIB_CALL +static krb5_error_code hdb_test_create(krb5_context context, struct HDB **db, const char *arg) { testresult.create = 1;