diff options
Diffstat (limited to 'src/ufo-roof-read-file.c')
-rw-r--r-- | src/ufo-roof-read-file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ufo-roof-read-file.c b/src/ufo-roof-read-file.c index de8391e..a5eb69b 100644 --- a/src/ufo-roof-read-file.c +++ b/src/ufo-roof-read-file.c @@ -23,14 +23,14 @@ static void ufo_roof_read_file_free(UfoRoofReadInterface *iface) { if (reader->fname) g_free(reader->fname); - if (reader->fd >= 0) + if (reader->fd) fclose(reader->fd); free(reader); } } -static guint ufo_roof_read_file(UfoRoofReadInterface *iface, void *buffers, GError **error) { +static guint ufo_roof_read_file(UfoRoofReadInterface *iface, uint8_t *buffers, GError **error) { UfoRoofReadFile *reader = (UfoRoofReadFile*)iface; UfoRoofConfig *cfg = reader->cfg; |