stream: error_func() returns int instead of int32_t
This commit is contained in:
parent
e548e342b9
commit
966359881e
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user