base: make heim_alloc deallocator use HEIM_CALLCONV

This commit is contained in:
Luke Howard
2022-01-29 09:53:37 +11:00
committed by Nico Williams
parent 4748f3a19d
commit 917e16049a
6 changed files with 6 additions and 6 deletions

View File

@@ -150,7 +150,7 @@ db_init_plugins_once(void *arg)
db_plugins = heim_retain(arg); db_plugins = heim_retain(arg);
} }
static void static void HEIM_CALLCONV
plugin_dealloc(void *arg) plugin_dealloc(void *arg)
{ {
db_plugin plug = arg; db_plugin plug = arg;

View File

@@ -173,7 +173,7 @@ void heim_release(heim_object_t);
void heim_show(heim_object_t); void heim_show(heim_object_t);
typedef void (*heim_type_dealloc)(void *); typedef void (HEIM_CALLCONV *heim_type_dealloc)(void *);
void * void *
heim_alloc(size_t size, const char *name, heim_type_dealloc dealloc); heim_alloc(size_t size, const char *name, heim_type_dealloc dealloc);

View File

@@ -112,7 +112,7 @@ struct heim_dso {
void *dsohandle; void *dsohandle;
}; };
static void static void HEIM_CALLCONV
dso_dealloc(void *ptr) dso_dealloc(void *ptr)
{ {
struct heim_dso *p = ptr; struct heim_dso *p = ptr;

View File

@@ -64,7 +64,7 @@
#include "baselocl.h" #include "baselocl.h"
static void static void HEIM_CALLCONV
memory_free(heim_object_t obj) memory_free(heim_object_t obj)
{ {
} }

View File

@@ -929,7 +929,7 @@ kpasswd_get_next(krb5_context context,
return KRB5_KDC_UNREACH; return KRB5_KDC_UNREACH;
} }
static void static void KRB5_CALLCONV
krbhost_dealloc(void *ptr) krbhost_dealloc(void *ptr)
{ {
struct krb5_krbhst_data *handle = (struct krb5_krbhst_data *)ptr; struct krb5_krbhst_data *handle = (struct krb5_krbhst_data *)ptr;

View File

@@ -176,7 +176,7 @@ struct krb5_sendto_ctx_data {
unsigned int stid; unsigned int stid;
}; };
static void static void KRB5_CALLCONV
dealloc_sendto_ctx(void *ptr) dealloc_sendto_ctx(void *ptr)
{ {
krb5_sendto_ctx ctx = (krb5_sendto_ctx)ptr; krb5_sendto_ctx ctx = (krb5_sendto_ctx)ptr;