stream: error_func() returns int instead of int32_t

This commit is contained in:
Hugues Delorme 2014-01-29 11:31:44 +01:00
parent e548e342b9
commit 966359881e
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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;

View File

@ -8,7 +8,7 @@ static foug_bool_t foug_stream_qiodevice_at_end(void* cookie)
return static_cast<QIODevice*>(cookie)->atEnd();
}
static int32_t foug_stream_qiodevice_error(void* cookie)
static int foug_stream_qiodevice_error(void* cookie)
{
const QIODevice* device = static_cast<QIODevice*>(cookie);
const QFile* file = dynamic_cast<const QFile*>(device);