Cleanup up non-prototyped functions (static) and const-correctness in programs

This commit is contained in:
Paul Bakker 2013-06-25 16:37:45 +02:00
parent b6c5d2e1a6
commit 3c5ef71322
12 changed files with 34 additions and 88 deletions

View file

@ -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 );