summaryrefslogtreecommitdiffstats
path: root/src/ufo-roof-read-file.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-11-17 10:46:03 +0100
committerSuren A. Chilingaryan <csa@suren.me>2019-11-17 10:46:03 +0100
commit23f22348c5281fff685c1fa89255e7e1e76266a4 (patch)
treefb05ad7fb39357ff8785068b3a1512101d685f41 /src/ufo-roof-read-file.c
parent3d93df54d024f49895db6277e873dccd10b5baec (diff)
downloadufo-roof-temp-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.gz
ufo-roof-temp-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.bz2
ufo-roof-temp-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.xz
ufo-roof-temp-23f22348c5281fff685c1fa89255e7e1e76266a4.zip
cmake build and gcc warnings
Diffstat (limited to 'src/ufo-roof-read-file.c')
-rw-r--r--src/ufo-roof-read-file.c4
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;