*
* \retval 0 on success; else a negative value on error
*/
-static SCError SCLogMessageGetBuffer(SCTime_t tval, int color, SCLogOPType type, char *buffer,
+static SCError SCLogMessageGetBuffer(SCTime_t tval, bool color, SCLogOPType type, char *buffer,
size_t buffer_size, const char *log_format, const SCLogLevel log_level, const char *file,
const unsigned int line, const char *function, const char *module, const char *message)
{
#ifndef OS_WIN32
if (isatty(fileno(stdout)) && isatty(fileno(stderr))) {
- iface_ctx->use_color = TRUE;
+ iface_ctx->use_color = true;
}
#endif