mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 21:38:23 +00:00
- Fixed warnings with cast
This commit is contained in:
parent
1496d38028
commit
e22d7030c6
1 changed files with 2 additions and 2 deletions
|
@ -612,7 +612,7 @@ int main( int argc, char *argv[] )
|
|||
fflush( stdout );
|
||||
|
||||
n = sizeof( buf );
|
||||
len = base64_encode( base, &n, opt.user_name, strlen( opt.user_name ) );
|
||||
len = base64_encode( base, &n, (unsigned char *) opt.user_name, strlen( opt.user_name ) );
|
||||
len = sprintf( (char *) buf, "%s\n", base );
|
||||
ret = write_ssl_and_get_response( &ssl, buf, len );
|
||||
if( ret < 300 || ret > 399 )
|
||||
|
@ -626,7 +626,7 @@ int main( int argc, char *argv[] )
|
|||
printf( " > Write password to server: %s", opt.user_pwd );
|
||||
fflush( stdout );
|
||||
|
||||
len = base64_encode( base, &n, opt.user_pwd, strlen( opt.user_pwd ) );
|
||||
len = base64_encode( base, &n, (unsigned char *) opt.user_pwd, strlen( opt.user_pwd ) );
|
||||
len = sprintf( (char *) buf, "%s\n", base );
|
||||
ret = write_ssl_and_get_response( &ssl, buf, len );
|
||||
if( ret < 200 || ret > 399 )
|
||||
|
|
Loading…
Reference in a new issue