diff options
author | unknown <reggie@monster.> | 2005-06-06 11:34:52 -0500 |
---|---|---|
committer | unknown <reggie@monster.> | 2005-06-06 11:34:52 -0500 |
commit | 6e82d648635706021684cf3d0af3527e617f282c (patch) | |
tree | 7fe15c14e9a6363110d49c2354c0b202ab80c4ce /client | |
parent | 22eeea04903dc0275387fd26cd7bd9cdc8f40f50 (diff) | |
download | mariadb-git-6e82d648635706021684cf3d0af3527e617f282c.tar.gz |
fixes for compiler warnings from VC6
client/mysqltest.c:
undef popen prior to redefining it to avoid compiler warning
cast len argument to replace_dynstr_append_mem to int. This should be ok because the
replace_dynstr_append method uses strlen to accomplish the same thing.
myisam/mi_create.c:
cast myisam_block_size down to uint16 to match the struct element block_length
mysys/default.c:
add (char*) cast to make compiler happy
mysys/my_handler.c:
add (my_bool) cast to make compiler happy
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index e3267b1731b..c172d18cbd0 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -246,6 +246,7 @@ typedef struct static char *subst_env_var(const char *cmd); static FILE *my_popen(const char *cmd, const char *mode); +#undef popen #define popen(A,B) my_popen((A),(B)) #endif /* __NETWARE__ */ @@ -2587,13 +2588,13 @@ static void append_result(DYNAMIC_STRING *ds, MYSQL_RES *res) { if (i) dynstr_append_mem(ds, "\t", 1); - replace_dynstr_append_mem(ds, val, len); + replace_dynstr_append_mem(ds, val, (int)len); } else { dynstr_append(ds, fields[i].name); dynstr_append_mem(ds, "\t", 1); - replace_dynstr_append_mem(ds, val, len); + replace_dynstr_append_mem(ds, val, (int)len); dynstr_append_mem(ds, "\n", 1); } } @@ -2960,7 +2961,7 @@ static int run_query_stmt(MYSQL *mysql, struct st_query *q, int flags) int error= 0; /* Function return code if "goto end;" */ int err; /* Temporary storage of return code from calls */ int query_len, got_error_on_execute; - uint num_rows; + ulonglong num_rows; char *query; MYSQL_RES *res= NULL; /* Note that here 'res' is meta data result set */ DYNAMIC_STRING *ds; @@ -3215,13 +3216,13 @@ static int run_query_stmt(MYSQL *mysql, struct st_query *q, int flags) { if (col_idx) /* No tab before first col */ dynstr_append_mem(ds, "\t", 1); - replace_dynstr_append_mem(ds, val, len); + replace_dynstr_append_mem(ds, val, (int)len); } else { dynstr_append(ds, field[col_idx].name); dynstr_append_mem(ds, "\t", 1); - replace_dynstr_append_mem(ds, val, len); + replace_dynstr_append_mem(ds, val, (int)len); dynstr_append_mem(ds, "\n", 1); } } |