diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 14:07:54 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 14:07:54 +0000 |
commit | b63c94237d26a4795bf71572a994705b93eb16a8 (patch) | |
tree | 2dd5bbdee1bdf4dcfedeb9fdff928ef541b4f50d /bbexample.c | |
parent | Adding upstream version 1.7~rc1. (diff) | |
download | lzlib-b63c94237d26a4795bf71572a994705b93eb16a8.tar.xz lzlib-b63c94237d26a4795bf71572a994705b93eb16a8.zip |
Adding upstream version 1.7.upstream/1.7
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'bbexample.c')
-rw-r--r-- | bbexample.c | 10 |
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; } |