mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
- Added const-correctness to main codebase
This commit is contained in:
parent
9120018f3d
commit
ff60ee6c2a
49 changed files with 1221 additions and 416 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue