1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

fix warnings

server-tools/instance-manager/buffer.cc:
  perform initialization of static consts in .cc file to respect VC6
server-tools/instance-manager/buffer.h:
  fix compiler warning
server-tools/instance-manager/commands.cc:
  fix compiler warning
server-tools/instance-manager/user_map.cc:
  fix compiler warning
This commit is contained in:
unknown
2005-09-20 03:14:07 +04:00
parent 730fc4156d
commit c8c29f2dc4
4 changed files with 8 additions and 5 deletions

View File

@ -66,7 +66,8 @@ int User::init(const char *line)
*/
if (password[strlen(password)-2] == '\r')
line_ending_len= 2;
if (strlen(password) != SCRAMBLED_PASSWORD_CHAR_LENGTH + line_ending_len)
if (strlen(password) != (uint) (SCRAMBLED_PASSWORD_CHAR_LENGTH +
line_ending_len))
goto err;
memcpy(user, name_begin, user_length);