From 23f22348c5281fff685c1fa89255e7e1e76266a4 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 17 Nov 2019 10:46:03 +0100 Subject: cmake build and gcc warnings --- src/ufo-roof-read-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ufo-roof-read-file.c') 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; -- cgit v1.2.3