summaryrefslogtreecommitdiffstats
path: root/bbexample.c
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:08:08 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:08:08 +0000
commitcffb4d6baffb84bc4f2f168ae3be7431e7a19a3e (patch)
tree52b702a077e13b87c1f94fdc7f9f9f537facc8e7 /bbexample.c
parentAdding debian version 1.7~rc1-1. (diff)
downloadlzlib-cffb4d6baffb84bc4f2f168ae3be7431e7a19a3e.tar.xz
lzlib-cffb4d6baffb84bc4f2f168ae3be7431e7a19a3e.zip
Merging upstream version 1.7.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
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;
}