* foreachaddr.c: New file, based on include/foreachaddr.c.
* libkrb5support.exports: New file.
+ * threads.c (k5_key_register, destructors, k5_setspecific)
+ [!ENABLE_THREADS]: Update to fit declarations.
+
#else
-static void (*destructors[K5_KEY_MAX])(void);
+static void (*destructors[K5_KEY_MAX])(void *);
static void *tsd_values[K5_KEY_MAX];
static unsigned char destructors_set[K5_KEY_MAX];
return 0;
}
-int k5_key_register (k5_key_t keynum, void (*d)(void))
+int k5_key_register (k5_key_t keynum, void (*d)(void *))
{
assert(keynum >= 0 && keynum < K5_KEY_MAX);
assert(destructors_set[keynum] == 0);
destructors[keynum] = d;
destructors_set[keynum] = 1;
+ return 0;
}
void *k5_getspecific (k5_key_t keynum)
return tsd_values[keynum];
}
-int k5_setspecific (k5_key_t keynum, const void *value)
+int k5_setspecific (k5_key_t keynum, void *value)
{
assert(keynum >= 0 && keynum < K5_KEY_MAX);
assert(destructors_set[keynum] == 1);