/** Lock and return a static stack pointer buffer that can hold up to
* MAX_DEPTH function pointers. */
-static void *
+static void **
lock_cb_buf(void)
{
/* Lock the mutex first, before even declaring the buffer. */
/** Unlock the static stack pointer buffer. */
static void
-unlock_cb_buf(void *cb_buf)
+unlock_cb_buf(void **cb_buf)
{
memset(cb_buf, 0, SIZEOF_CB_BUF);
pthread_mutex_unlock(&cb_buf_mutex);
char **symbols;
size_t i;
- void *cb_buf = lock_cb_buf();
+ void **cb_buf = lock_cb_buf();
depth = backtrace(cb_buf, MAX_DEPTH);
symbols = backtrace_symbols(cb_buf, (int)depth);
int n_fds, i;
const int *fds = NULL;
- void *cb_buf = lock_cb_buf();
+ void **cb_buf = lock_cb_buf();
(void) si;
const int *fds = NULL;
size_t depth;
- void *cb_buf = lock_cb_buf();
+ void **cb_buf = lock_cb_buf();
depth = backtrace(cb_buf, MAX_DEPTH);
* libc has pre-loaded the symbols we need to dump things, so that later
* reads won't be denied by the sandbox code */
char **symbols;
- void *cb_buf = lock_cb_buf();
+ void **cb_buf = lock_cb_buf();
size_t depth = backtrace(cb_buf, MAX_DEPTH);
symbols = backtrace_symbols(cb_buf, (int) depth);
if (symbols)