summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_read_data_into_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libarchive/archive_read_data_into_buffer.c')
-rw-r--r--lib/libarchive/archive_read_data_into_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libarchive/archive_read_data_into_buffer.c b/lib/libarchive/archive_read_data_into_buffer.c
index 12abb55..0b52617 100644
--- a/lib/libarchive/archive_read_data_into_buffer.c
+++ b/lib/libarchive/archive_read_data_into_buffer.c
@@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$");
#include "archive.h"
-ssize_t
+int
archive_read_data_into_buffer(struct archive *a, void *d, ssize_t len)
{
char *dest;
@@ -45,5 +45,5 @@ archive_read_data_into_buffer(struct archive *a, void *d, ssize_t len)
bytes_read = archive_read_data(a, dest + total_bytes,
len - total_bytes);
}
- return (total_bytes);
+ return (ARCHIVE_OK);
}
OpenPOWER on IntegriCloud