fixed some warnings about const -> non-const conversions
This commit is contained in:
@ -249,7 +249,7 @@ static int logmanager_write_log(
|
|||||||
bool use_valist,
|
bool use_valist,
|
||||||
bool spread_down,
|
bool spread_down,
|
||||||
size_t len,
|
size_t len,
|
||||||
char* str,
|
const char* str,
|
||||||
va_list valist);
|
va_list valist);
|
||||||
|
|
||||||
static blockbuf_t* blockbuf_init(logfile_id_t id);
|
static blockbuf_t* blockbuf_init(logfile_id_t id);
|
||||||
@ -603,7 +603,7 @@ static int logmanager_write_log(
|
|||||||
bool use_valist,
|
bool use_valist,
|
||||||
bool spread_down,
|
bool spread_down,
|
||||||
size_t str_len,
|
size_t str_len,
|
||||||
char* str,
|
const char* str,
|
||||||
va_list valist)
|
va_list valist)
|
||||||
{
|
{
|
||||||
logfile_t* lf;
|
logfile_t* lf;
|
||||||
@ -617,7 +617,7 @@ static int logmanager_write_log(
|
|||||||
CHK_LOGMANAGER(lm);
|
CHK_LOGMANAGER(lm);
|
||||||
|
|
||||||
if (id < LOGFILE_FIRST || id > LOGFILE_LAST) {
|
if (id < LOGFILE_FIRST || id > LOGFILE_LAST) {
|
||||||
char* errstr = "Invalid logfile id argument.";
|
const char* errstr = "Invalid logfile id argument.";
|
||||||
/**
|
/**
|
||||||
* invalid id, since we don't have logfile yet.
|
* invalid id, since we don't have logfile yet.
|
||||||
*/
|
*/
|
||||||
@ -1092,7 +1092,7 @@ static bool logfile_set_enabled(
|
|||||||
CHK_LOGMANAGER(lm);
|
CHK_LOGMANAGER(lm);
|
||||||
|
|
||||||
if (id < LOGFILE_FIRST || id > LOGFILE_LAST) {
|
if (id < LOGFILE_FIRST || id > LOGFILE_LAST) {
|
||||||
char* errstr = "Invalid logfile id argument.";
|
const char* errstr = "Invalid logfile id argument.";
|
||||||
/**
|
/**
|
||||||
* invalid id, since we don't have logfile yet.
|
* invalid id, since we don't have logfile yet.
|
||||||
*/
|
*/
|
||||||
@ -1146,7 +1146,7 @@ return_succp:
|
|||||||
|
|
||||||
int skygw_log_write_flush(
|
int skygw_log_write_flush(
|
||||||
logfile_id_t id,
|
logfile_id_t id,
|
||||||
char* str,
|
const char* str,
|
||||||
...)
|
...)
|
||||||
{
|
{
|
||||||
int err = 0;
|
int err = 0;
|
||||||
@ -1199,7 +1199,7 @@ return_err:
|
|||||||
|
|
||||||
int skygw_log_write(
|
int skygw_log_write(
|
||||||
logfile_id_t id,
|
logfile_id_t id,
|
||||||
char* str,
|
const char* str,
|
||||||
...)
|
...)
|
||||||
{
|
{
|
||||||
int err = 0;
|
int err = 0;
|
||||||
|
@ -66,9 +66,9 @@ void skygw_logmanager_exit(void);
|
|||||||
* free private write buffer list
|
* free private write buffer list
|
||||||
*/
|
*/
|
||||||
void skygw_log_done(void);
|
void skygw_log_done(void);
|
||||||
int skygw_log_write(logfile_id_t id, char* format, ...);
|
int skygw_log_write(logfile_id_t id, const char* format, ...);
|
||||||
int skygw_log_flush(logfile_id_t id);
|
int skygw_log_flush(logfile_id_t id);
|
||||||
int skygw_log_write_flush(logfile_id_t id, char* format, ...);
|
int skygw_log_write_flush(logfile_id_t id, const char* format, ...);
|
||||||
int skygw_log_enable(logfile_id_t id);
|
int skygw_log_enable(logfile_id_t id);
|
||||||
int skygw_log_disable(logfile_id_t id);
|
int skygw_log_disable(logfile_id_t id);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user