mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-02-18 16:33:01 +00:00
- Added const-correctness to main codebase
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user