1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Portability fix

Cleanup typos (like SKIPP -> SKIP)
This commit is contained in:
monty@hundin.mysql.fi
2001-11-07 00:13:29 +02:00
parent 771af387e3
commit 4c60b41954
49 changed files with 187 additions and 169 deletions

View File

@ -112,14 +112,18 @@ void get_pass(char* pw, int len)
fclose(fp);
while (pw<pw_end)
{
*pw++='a'+((uint)*pw % 26);
char tmp= 'a'+((uint)*pw % 26);
*pw++= tmp;
}
}
else
{
srand(time(NULL));
while (pw<pw_end)
*pw++='a'+((uint)rand() % 26);
{
char tmp= 'a'+((uint)*pw % 26);
*pw++= tmp;
}
}
*pw_end=0;
}