X-Git-Url: http://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/0d572b509281eb39bd418cb7a87ecfd9e101cb8a..6fed51f830b164db3ffaeb42604bb5d6a8a05138:/src/libupkg.c diff --git a/src/libupkg.c b/src/libupkg.c index 2c0cf07..40b3913 100644 --- a/src/libupkg.c +++ b/src/libupkg.c @@ -61,27 +61,27 @@ struct upkg_private { /* Default I/O operations for ordinary files. */ static size_t file_read(void *buf, size_t size, void *handle) { - return fread(buf, 1, size, handle); + return fread(buf, 1, size, (FILE *)handle); } static int file_seek(void *handle, long offset, int whence) { - return fseek(handle, offset, whence); + return fseek((FILE *)handle, offset, whence); } static long file_tell(void *handle) { - return ftell(handle); + return ftell((FILE *)handle); } static int file_eof(void *handle) { - return feof(handle); + return feof((FILE *)handle); } static int file_close(void *handle) { - return fclose(handle); + return fclose((FILE *)handle); } const struct upkg_file_ops upkg_default_fops = {