From 966359881e396cf064b9c038b4b7289876b86d3b Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Wed, 29 Jan 2014 11:31:44 +0100 Subject: [PATCH] stream: error_func() returns int instead of int32_t --- src/stream.c | 2 +- src/stream.h | 2 +- src/support/qt_stream.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stream.c b/src/stream.c index 5fa9691..619f84d 100644 --- a/src/stream.c +++ b/src/stream.c @@ -17,7 +17,7 @@ static foug_bool_t foug_stream_stdio_at_end(void* cookie) return feof((FILE*) cookie); } -static int32_t foug_stream_stdio_error(void* cookie) +static int foug_stream_stdio_error(void* cookie) { return ferror((FILE*) cookie); } diff --git a/src/stream.h b/src/stream.h index 36ff04b..90c86a9 100644 --- a/src/stream.h +++ b/src/stream.h @@ -21,7 +21,7 @@ typedef struct void* cookie; foug_bool_t (*at_end_func)(void*); - int32_t (*error_func)(void*); + int (*error_func)(void*); size_t (*read_func)(void*, void*, size_t, size_t); size_t (*write_func)(void*, const void*, size_t, size_t); } foug_stream_t; diff --git a/src/support/qt_stream.cpp b/src/support/qt_stream.cpp index 096068a..dc0ebb0 100644 --- a/src/support/qt_stream.cpp +++ b/src/support/qt_stream.cpp @@ -8,7 +8,7 @@ static foug_bool_t foug_stream_qiodevice_at_end(void* cookie) return static_cast(cookie)->atEnd(); } -static int32_t foug_stream_qiodevice_error(void* cookie) +static int foug_stream_qiodevice_error(void* cookie) { const QIODevice* device = static_cast(cookie); const QFile* file = dynamic_cast(device);