client/mysql.c: fixed compiler warning
This commit is contained in:
parent
b6b355f6ce
commit
c0d47d945c
1 changed files with 4 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ static dictionary *config = NULL;
|
||||||
/*
|
/*
|
||||||
* Converts error codes to string
|
* Converts error codes to string
|
||||||
*/
|
*/
|
||||||
static char *client_error(int error) {
|
static const char* client_error(int error) {
|
||||||
|
|
||||||
switch (error) {
|
switch (error) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
@ -97,7 +97,7 @@ static void clean_exit(int excode) {
|
||||||
/* Clean mysql */
|
/* Clean mysql */
|
||||||
int status = client_exit();
|
int status = client_exit();
|
||||||
if (0 != status) {
|
if (0 != status) {
|
||||||
char *str = client_error(status);
|
const char *str = client_error(status);
|
||||||
fprintf(stderr,"%s", str);
|
fprintf(stderr,"%s", str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -362,7 +362,7 @@ static void main_loop() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char **argv) {
|
||||||
|
|
||||||
/* Return value */
|
/* Return value */
|
||||||
int ret;
|
int ret;
|
||||||
|
|
|
||||||
Reference in a new issue