1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Remove compiler warnings

This commit is contained in:
monty@mysql.com/narttu.mysql.fi
2007-02-27 19:31:49 +02:00
parent 6163508f85
commit cfef5d04b3
12 changed files with 85 additions and 60 deletions

View File

@ -24,8 +24,8 @@
User::User(const LEX_STRING *user_name_arg, const char *password)
{
user_length= strmake(user, user_name_arg->str, USERNAME_LENGTH + 1) - user;
user_length= (uint8) (strmake(user, user_name_arg->str,
USERNAME_LENGTH + 1) - user);
set_password(password);
}
@ -59,7 +59,7 @@ int User::init(const char *line)
password= name_end + 1;
}
user_length= name_end - name_begin;
user_length= (uint8) (name_end - name_begin);
if (user_length > USERNAME_LENGTH)
{
log_error("User name is too long (%d). Max length: %d. "
@ -70,7 +70,7 @@ int User::init(const char *line)
return 1;
}
password_length= strlen(password);
password_length= (int) strlen(password);
if (password_length > SCRAMBLED_PASSWORD_CHAR_LENGTH)
{
log_error("Password is too long (%d). Max length: %d."