From: <sba...@us...> - 2023-06-11 19:43:09
|
This is an automated email from the git hooks/post-receive-user script. sbaldovi pushed a commit to branch master in repository libspectrum. View the commit online: https://sourceforge.net/p/fuse-emulator/libspectrum/ci/40115c72a5db73ececeeb97e956e8392eb68aee1/ commit 40115c72a5db73ececeeb97e956e8392eb68aee1 Author: Sergio Baldoví <ser...@gm...> AuthorDate: Sun Jun 11 21:21:32 2023 +0200 Fix function prototypes due to enum/integer mismatch --- internals.h | 5 +++-- zip.c | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/internals.h b/internals.h index 02957d4..8f799f7 100644 --- a/internals.h +++ b/internals.h @@ -150,8 +150,9 @@ extern const char * const libspectrum_tzx_signature; /* Convert a 48K memory dump into separate RAM pages */ -int libspectrum_split_to_48k_pages( libspectrum_snap *snap, - const libspectrum_byte* data ); +libspectrum_error +libspectrum_split_to_48k_pages( libspectrum_snap *snap, + const libspectrum_byte* data ); /* Sizes of some of the arrays in the snap structure */ #define SNAPSHOT_RAM_PAGES 16 diff --git a/zip.c b/zip.c index 826dfff..a98b779 100644 --- a/zip.c +++ b/zip.c @@ -355,16 +355,16 @@ dump_entry_stat( struct libspectrum_zip *z, zip_stat *info ) } /* Jump to next entry in the archive */ -int +libspectrum_error libspectrum_zip_next( struct libspectrum_zip *z, zip_stat *info ) { - if( !z || z->state == ARCHIVE_CLOSED ) return 1; + if( !z || z->state == ARCHIVE_CLOSED ) return LIBSPECTRUM_ERROR_UNKNOWN; - if( read_directory( z ) ) return 1; + if( read_directory( z ) ) return LIBSPECTRUM_ERROR_UNKNOWN; dump_entry_stat( z, info ); - return 0; + return LIBSPECTRUM_ERROR_NONE; } /* Locate a file in the archive (non-sequential acces) */ |