summaryrefslogtreecommitdiff
path: root/src/apk_io.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-22 14:56:27 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-22 14:56:27 +0300
commit93f0b3524c1263b99a1a4bf718c27e6ad7b6aea8 (patch)
tree84261f2a088ff9bf53a6db30669602f159a01b00 /src/apk_io.h
parent0a7991f70dcfe9f8e05f6a4a4a59af21be878915 (diff)
downloadapk-tools-93f0b3524c1263b99a1a4bf718c27e6ad7b6aea8.tar.gz
apk-tools-93f0b3524c1263b99a1a4bf718c27e6ad7b6aea8.tar.bz2
apk-tools-93f0b3524c1263b99a1a4bf718c27e6ad7b6aea8.tar.xz
apk-tools-93f0b3524c1263b99a1a4bf718c27e6ad7b6aea8.zip
various: more informative error messages
Diffstat (limited to 'src/apk_io.h')
-rw-r--r--src/apk_io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apk_io.h b/src/apk_io.h
index fe6baac..2520665 100644
--- a/src/apk_io.h
+++ b/src/apk_io.h
@@ -31,7 +31,7 @@ struct apk_file_info {
};
struct apk_istream {
- size_t (*read)(void *stream, void *ptr, size_t size);
+ ssize_t (*read)(void *stream, void *ptr, size_t size);
void (*close)(void *stream);
};
@@ -44,7 +44,7 @@ struct apk_bstream {
};
struct apk_ostream {
- size_t (*write)(void *stream, const void *buf, size_t size);
+ ssize_t (*write)(void *stream, const void *buf, size_t size);
void (*close)(void *stream);
};