diff options
author | unknown <monty@hundin.mysql.fi> | 2002-04-30 16:40:46 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-04-30 16:40:46 +0300 |
commit | 60e90ef61e57c99fa3a081acbd4cf7e9b86a5f30 (patch) | |
tree | d6fa271f9a4c5ebea5f1a2e4ddb284d4753801d5 /sql | |
parent | b6a02149f7d82208dd5704e89653c4786a712df9 (diff) | |
download | mariadb-git-60e90ef61e57c99fa3a081acbd4cf7e9b86a5f30.tar.gz |
Portability fix
Diffstat (limited to 'sql')
-rw-r--r-- | sql/slave.cc | 12 | ||||
-rw-r--r-- | sql/slave.h | 2 |
2 files changed, 9 insertions, 5 deletions
diff --git a/sql/slave.cc b/sql/slave.cc index 956f21593e5..b473d8ab1e3 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -246,9 +246,10 @@ err: } /* called from get_options() in mysqld.cc on start-up */ -void init_slave_skip_errors(char* arg) + +void init_slave_skip_errors(const char* arg) { - char* p; + const char *p; my_bool last_was_digit = 0; if (bitmap_init(&slave_error_mask,MAX_SLAVE_ERROR,0)) { @@ -275,8 +276,11 @@ void init_slave_skip_errors(char* arg) } } -// we assume we have a run lock on rli and that the both slave thread -// are not running +/* + We assume we have a run lock on rli and that the both slave thread + are not running +*/ + int purge_relay_logs(RELAY_LOG_INFO* rli, bool just_reset, const char** errmsg) { DBUG_ENTER("purge_relay_logs"); diff --git a/sql/slave.h b/sql/slave.h index 75e3e81e57f..34df17f2851 100644 --- a/sql/slave.h +++ b/sql/slave.h @@ -333,7 +333,7 @@ typedef struct st_table_rule_ent #define SLAVE_FORCE_ALL 4 int init_slave(); -void init_slave_skip_errors(char* arg); +void init_slave_skip_errors(const char* arg); int flush_master_info(MASTER_INFO* mi); int flush_relay_log_info(RELAY_LOG_INFO* rli); int register_slave_on_master(MYSQL* mysql); |