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,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;