diff options
Diffstat (limited to 'lib/libarchive/archive_write_open_file.c')
-rw-r--r-- | lib/libarchive/archive_write_open_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libarchive/archive_write_open_file.c b/lib/libarchive/archive_write_open_file.c index 0eb1a03..b95693b 100644 --- a/lib/libarchive/archive_write_open_file.c +++ b/lib/libarchive/archive_write_open_file.c @@ -54,7 +54,7 @@ struct write_FILE_data { static int file_close(struct archive *, void *); static int file_open(struct archive *, void *); -static ssize_t file_write(struct archive *, void *, void *buff, size_t); +static ssize_t file_write(struct archive *, void *, const void *buff, size_t); int archive_write_open_FILE(struct archive *a, FILE *f) @@ -81,7 +81,7 @@ file_open(struct archive *a, void *client_data) } static ssize_t -file_write(struct archive *a, void *client_data, void *buff, size_t length) +file_write(struct archive *a, void *client_data, const void *buff, size_t length) { struct write_FILE_data *mine; size_t bytesWritten; |