static void *stack_frames[50];
static size_t size, NThread;
static char **strings;
-static char StrBuf[SIZ];
+static char StaticBuf[SIZ];
/*
* Private structures for our thread list
if (enable_syslog)
{
- snprintf (StrBuf, SIZ, format, ap);
- syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StrBuf);
+ snprintf (StaticBuf, SIZ, format, ap);
+ syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StaticBuf);
}
else
CtdlLogPrintf(CTDL_EMERG, format, ap);
if (enable_syslog)
for (NThread = 0; NThread < size; NThread++)
{
- snprintf (StrBuf, SIZ, "RAW: %p ", stack_frames[NThread]);
- syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StrBuf);
+ snprintf (StaticBuf, SIZ, "RAW: %p ", stack_frames[NThread]);
+ syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StaticBuf);
}
else
for (NThread = 0; NThread < size; NThread++)
if (strings != NULL) {
if (enable_syslog)
{// vsyslogs printf compliance sucks.
- snprintf (StrBuf, SIZ, "RAW: %p ", strings[NThread]);
- syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StrBuf);
+ snprintf (StaticBuf, SIZ, "RAW: %p ", strings[NThread]);
+ syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StaticBuf);
}
else
CtdlLogPrintf(1, "%s\n", strings[NThread]);
if (enable_syslog)
for (NThread = 0; NThread < size; NThread++)
{
- snprintf (StrBuf, SIZ, "RAW: %p ", stack_frames[NThread]);
- syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StrBuf);
+ snprintf (StaticBuf, SIZ, "RAW: %p ", stack_frames[NThread]);
+ syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StaticBuf);
}
else
for (NThread = 0; NThread < size; NThread++)