diff options
author | monty@mysql.com/narttu.mysql.fi <> | 2006-11-30 03:40:42 +0200 |
---|---|---|
committer | monty@mysql.com/narttu.mysql.fi <> | 2006-11-30 03:40:42 +0200 |
commit | 3a35c30027ed27bf6d2f457168fab2e4ef9e198e (patch) | |
tree | 7cc1a3e7f00427d01d2117c9b3c41231a827afd3 /libmysql | |
parent | 717284b85cfdaeacb0e28177e13cf6fd24f36a3b (diff) | |
download | mariadb-git-3a35c30027ed27bf6d2f457168fab2e4ef9e198e.tar.gz |
Fixed compiler warnings (Mostly VC++):
- Removed not used variables
- Changed some ulong parameters/variables to ulonglong (possible serious bug)
- Added casts to get rid of safe assignment from longlong to long (and similar)
- Added casts to function parameters
- Fixed signed/unsigned compares
- Added some constructores to structures
- Removed some not portable constructs
Better fix for bug Bug #21428 "skipped 9 bytes from file: socket (3)" on "mysqladmin shutdown"
(Added new parameter to net_clear() to define when we want the communication buffer to be emptied)
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index ac4548f7301..89243817638 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -2518,7 +2518,7 @@ int cli_stmt_execute(MYSQL_STMT *stmt) DBUG_RETURN(1); } - net_clear(net); /* Sets net->write_pos */ + net_clear(net, 1); /* Sets net->write_pos */ /* Reserve place for null-marker bytes */ null_count= (stmt->param_count+7) /8; if (my_realloc_str(net, null_count + 1)) |