diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-01-11 05:24:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-01-11 05:24:58 +0000 |
commit | ff926339aad7083a9a96881ee50ec8513f964ce1 (patch) | |
tree | 3da58f5fd368c3b4b3ab45e9db852838397b5e58 /bbexample.c | |
parent | Releasing debian version 1.10-3. (diff) | |
download | lzlib-ff926339aad7083a9a96881ee50ec8513f964ce1.tar.xz lzlib-ff926339aad7083a9a96881ee50ec8513f964ce1.zip |
Merging upstream version 1.11.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 8c2ff04..e953c35 100644 --- a/bbexample.c +++ b/bbexample.c @@ -1,5 +1,5 @@ /* Buffer to buffer example - Test program for the lzlib library - Copyright (C) 2010-2018 Antonio Diaz Diaz. + Copyright (C) 2010-2019 Antonio Diaz Diaz. This program is free software: you have unlimited permission to copy, distribute and modify it. @@ -26,10 +26,10 @@ /* Returns the address of a malloc'd buffer containing the file data and - its size in '*size'. - In case of error, returns 0 and does not modify '*size'. + the file size in '*file_sizep'. + In case of error, returns 0 and does not modify '*file_sizep'. */ -uint8_t * read_file( const char * const name, long * const size ) +uint8_t * read_file( const char * const name, long * const file_sizep ) { long buffer_size = 1 << 20, file_size; uint8_t * buffer, * tmp; @@ -67,7 +67,7 @@ uint8_t * read_file( const char * const name, long * const size ) free( buffer ); return 0; } fclose( f ); - *size = file_size; + *file_sizep = file_size; return buffer; } |