This function attempted to return a negative value to indicate an error
but the return type was unsigned. This change makes it signed.
Signed-off-by: Russell Bryant <rbryant(a)redhat.com>
---
src/include/matahari/utilities.h | 2 +-
src/lib/utilities.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/include/matahari/utilities.h b/src/include/matahari/utilities.h
index 941e3a2..497631e 100644
--- a/src/include/matahari/utilities.h
+++ b/src/include/matahari/utilities.h
@@ -142,7 +142,7 @@ mh_string_copy(char *dst, const char *src, size_t dst_len);
* \retval >0 Number of characters read
* \retval <0 Error occured
*/
-gsize
+gssize
mh_read_from_fd(int fd, char **data);
#ifdef __cplusplus
diff --git a/src/lib/utilities.c b/src/lib/utilities.c
index d62f76e..3e14253 100644
--- a/src/lib/utilities.c
+++ b/src/lib/utilities.c
@@ -546,7 +546,7 @@ mh_result_to_str(enum mh_result res)
return "FIXME: result code doesn't have message assigned!";
}
-gsize
+gssize
mh_read_from_fd(int fd, char **data)
{
gsize length;
--
1.7.7.3