mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Removed compiler warnings
Ensure that my_size_t is always unsigned (to get predictiable results from system to system) Removed some %lld, as these are not portable
This commit is contained in:
@ -592,7 +592,7 @@ get_random_string(char *buf)
|
||||
DBUG_ENTER("get_random_string");
|
||||
for (x= RAND_STRING_SIZE; x > 0; x--)
|
||||
*buf_ptr++= ALPHANUMERICS[random() % ALPHANUMERICS_SIZE];
|
||||
DBUG_PRINT("info", ("random string: '%*s'", buf_ptr - buf, buf));
|
||||
DBUG_PRINT("info", ("random string: '%*s'", (int) (buf_ptr - buf), buf));
|
||||
DBUG_RETURN(buf_ptr - buf);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user