mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Cleanup up non-prototyped functions (static) and const-correctness in programs
This commit is contained in:
parent
b6c5d2e1a6
commit
3c5ef71322
12 changed files with 34 additions and 88 deletions
|
|
@ -91,7 +91,7 @@ struct options
|
|||
* Although this PRNG has good statistical properties (eg. passes
|
||||
* DIEHARD), it is not cryptographically secure.
|
||||
*/
|
||||
unsigned long int lcppm5( unsigned long int *state )
|
||||
static unsigned long int lcppm5( unsigned long int *state )
|
||||
{
|
||||
unsigned long int u, v;
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ unsigned long int lcppm5( unsigned long int *state )
|
|||
return( u );
|
||||
}
|
||||
|
||||
void my_debug( void *ctx, int level, const char *str )
|
||||
static void my_debug( void *ctx, int level, const char *str )
|
||||
{
|
||||
if( level < ((struct options *) ctx)->debug_level )
|
||||
fprintf( stderr, "%s", str );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue