summaryrefslogtreecommitdiffstats
path: root/bbexample.c
diff options
context:
space:
mode:
Diffstat (limited to 'bbexample.c')
-rw-r--r--bbexample.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bbexample.c b/bbexample.c
index 56c655b..3737f97 100644
--- a/bbexample.c
+++ b/bbexample.c
@@ -157,7 +157,7 @@ int main( const int argc, const char * const argv[] )
if( argc < 2 )
{
- fprintf( stderr, "Usage: bbexample filename\n" );
+ fputs( "Usage: bbexample filename\n", stderr );
return 1;
}
@@ -171,7 +171,7 @@ int main( const int argc, const char * const argv[] )
in_buffer = (uint8_t *)malloc( in_buffer_size );
if( !in_buffer )
{
- fprintf( stderr, "bbexample: Not enough memory.\n" );
+ fputs( "bbexample: Not enough memory.\n", stderr );
return 1;
}
@@ -186,21 +186,21 @@ int main( const int argc, const char * const argv[] )
mid_buffer = bbcompress( in_buffer, in_size, &mid_size );
if( !mid_buffer )
{
- fprintf( stderr, "bbexample: Not enough memory or compress error.\n" );
+ fputs( "bbexample: Not enough memory or compress error.\n", stderr );
return 1;
}
out_buffer = bbdecompress( mid_buffer, mid_size, &out_size );
if( !out_buffer )
{
- fprintf( stderr, "bbexample: Not enough memory or decompress error.\n" );
+ fputs( "bbexample: Not enough memory or decompress error.\n", stderr );
return 1;
}
if( in_size != out_size ||
( in_size > 0 && memcmp( in_buffer, out_buffer, in_size ) != 0 ) )
{
- fprintf( stderr, "bbexample: Decompressed data differs from original.\n" );
+ fputs( "bbexample: Decompressed data differs from original.\n", stderr );
return 1;
}