Fix compiler warnings for mysqltest.c

parent ced32517
...@@ -1233,7 +1233,7 @@ enum enum_operator ...@@ -1233,7 +1233,7 @@ enum enum_operator
int do_modify_var(struct st_query *query, const char *name, int do_modify_var(struct st_query *query, const char *name,
enum enum_operator operator) enum enum_operator operator)
{ {
char *p= query->first_argument; const char *p= query->first_argument;
VAR* v; VAR* v;
if (!*p) if (!*p)
die("Missing arguments to %s", name); die("Missing arguments to %s", name);
...@@ -1252,7 +1252,7 @@ int do_modify_var(struct st_query *query, const char *name, ...@@ -1252,7 +1252,7 @@ int do_modify_var(struct st_query *query, const char *name,
break; break;
} }
v->int_dirty= 1; v->int_dirty= 1;
query->last_argument= ++p; query->last_argument= (char*)++p;
return 0; return 0;
} }
...@@ -1392,8 +1392,6 @@ int do_sync_with_master(struct st_query *query) ...@@ -1392,8 +1392,6 @@ int do_sync_with_master(struct st_query *query)
long offset= 0; long offset= 0;
char *p= query->first_argument; char *p= query->first_argument;
const char *offset_start= p; const char *offset_start= p;
const char *offset_end= query->end;
int error;
if (*offset_start) if (*offset_start)
{ {
for (; my_isdigit(charset_info, *p); p++) for (; my_isdigit(charset_info, *p); p++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment