mirror of
http://galexander.org/git/simplesshd.git
synced 2025-01-01 02:40:52 +00:00
Add type cast to avoid warning.
This commit is contained in:
parent
5a5cc34841
commit
b7bc52d209
@ -61,7 +61,7 @@ void svr_authinitialise() {
|
|||||||
char pw[9];
|
char pw[9];
|
||||||
int i;
|
int i;
|
||||||
ses.authstate.authtypes = AUTH_TYPE_PASSWORD;
|
ses.authstate.authtypes = AUTH_TYPE_PASSWORD;
|
||||||
genrandom(pw, 8);
|
genrandom((unsigned char *)pw, 8);
|
||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
pw[i] = tab64[pw[i] & 63];
|
pw[i] = tab64[pw[i] & 63];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user