- Added const-correctness to main codebase

This commit is contained in:
Paul Bakker 2010-03-16 21:09:09 +00:00
parent 9120018f3d
commit ff60ee6c2a
49 changed files with 1221 additions and 416 deletions

View file

@ -38,7 +38,7 @@
#define DEBUG_LEVEL 4
void my_debug( void *ctx, int level, char *str )
void my_debug( void *ctx, int level, const char *str )
{
if( level < DEBUG_LEVEL )
{

View file

@ -53,7 +53,7 @@ struct options
char *request_page; /* page on server to request */
} opt;
void my_debug( void *ctx, int level, char *str )
void my_debug( void *ctx, int level, const char *str )
{
if( level < opt.debug_level )
{

View file

@ -80,7 +80,7 @@ int my_ciphers[] =
#define DEBUG_LEVEL 0
void my_debug( void *ctx, int level, char *str )
void my_debug( void *ctx, int level, const char *str )
{
if( level < DEBUG_LEVEL )
{

View file

@ -113,7 +113,7 @@ unsigned long int lcppm5( unsigned long int *state )
return( u );
}
void my_debug( void *ctx, int level, char *str )
void my_debug( void *ctx, int level, const char *str )
{
if( level < ((struct options *) ctx)->debug_level )
fprintf( stderr, "%s", str );