X-Git-Url: https://code.wpia.club/?p=cassiopeia.git;a=blobdiff_plain;f=src%2Fio%2Fbios.cpp;fp=src%2Fio%2Fbios.cpp;h=31f1cb0eb934669415d73bc8431b0525d6ad5625;hp=9a1ea578fcac0422b894a158f5aee94bb44243b7;hb=da9f337a893bd317460118f89efa83a3427f797f;hpb=23987db96db7962a6ee58d1aeda2bd87780ca579 diff --git a/src/io/bios.cpp b/src/io/bios.cpp index 9a1ea57..31f1cb0 100644 --- a/src/io/bios.cpp +++ b/src/io/bios.cpp @@ -4,28 +4,28 @@ namespace BIOWrapper { - int write( BIO* b, const char* buf, int num ) { - return static_cast( b->ptr )->write( buf, num ); + int write( BIO *b, const char *buf, int num ) { + return static_cast( b->ptr )->write( buf, num ); } - int read( BIO* b, char* buf, int size ) { - return static_cast( b->ptr )->read( buf, size ); + int read( BIO *b, char *buf, int size ) { + return static_cast( b->ptr )->read( buf, size ); } - int puts( BIO* b, const char* str ) { - return static_cast( b->ptr )->puts( str ); + int puts( BIO *b, const char *str ) { + return static_cast( b->ptr )->puts( str ); } - int gets( BIO* b, char* str, int size ) { - return static_cast( b->ptr )->gets( str, size ); + int gets( BIO *b, char *str, int size ) { + return static_cast( b->ptr )->gets( str, size ); } - long ctrl( BIO* b, int cmod, long arg1, void* arg2 ) { - return static_cast( b->ptr )->ctrl( cmod, arg1, arg2 ); + long ctrl( BIO *b, int cmod, long arg1, void *arg2 ) { + return static_cast( b->ptr )->ctrl( cmod, arg1, arg2 ); } - int free( BIO* b ) { - delete static_cast( b->ptr ); + int free( BIO *b ) { + delete static_cast( b->ptr ); b->ptr = 0; return 0; } @@ -34,11 +34,11 @@ namespace BIOWrapper { OpensslBIO::~OpensslBIO() {} -int OpensslBIO::puts( const char* str ) { +int OpensslBIO::puts( const char *str ) { ( void ) str; return -1; } -int OpensslBIO::gets( char* str, int size ) { +int OpensslBIO::gets( char *str, int size ) { ( void ) str; ( void ) size; return -1;