Archived
1
0
Fork 0

client/mysql.c: fixed compiler warning

This commit is contained in:
Henrik Hautakoski 2010-10-11 20:15:13 +02:00
parent b6b355f6ce
commit c0d47d945c

View file

@ -44,8 +44,8 @@ static dictionary *config = NULL;
/*
* Converts error codes to string
*/
static char *client_error(int error) {
static const char* client_error(int error) {
switch (error) {
case 1:
return "Missing 'host' in configuration";
@ -97,7 +97,7 @@ static void clean_exit(int excode) {
/* Clean mysql */
int status = client_exit();
if (0 != status) {
char *str = client_error(status);
const char *str = client_error(status);
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 */
int ret;