summaryrefslogtreecommitdiff
path: root/geyes
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2017-12-29 16:56:34 +0100
committerPablo Barciela <[email protected]>2017-12-29 16:56:34 +0100
commitd0ec08fae4bdc55a31c5533bca298a44e9b9cb39 (patch)
tree1f8a4900b2da5e40359166aad4d259c683d742c1 /geyes
parent341cd453ca93a6842f2535a827dab88c95257cb8 (diff)
downloadmate-applets-d0ec08fae4bdc55a31c5533bca298a44e9b9cb39.tar.bz2
mate-applets-d0ec08fae4bdc55a31c5533bca298a44e9b9cb39.tar.xz
Fix build warnings: ignoring return value of ‘fgets’,
declared with attribute warn_unused_result
Diffstat (limited to 'geyes')
-rw-r--r--geyes/themes.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/geyes/themes.c b/geyes/themes.c
index 01924ea8..687c4694 100644
--- a/geyes/themes.c
+++ b/geyes/themes.c
@@ -56,7 +56,10 @@ parse_theme_file (EyesApplet *eyes_applet, FILE *theme_file)
{
gchar line_buf [512]; /* prolly overkill */
gchar *token;
- fgets (line_buf, 512, theme_file);
+
+ if (fgets (line_buf, 512, theme_file) == NULL)
+ printf("fgets error\n");
+
while (!feof (theme_file)) {
token = strtok (line_buf, "=");
if (strncmp (token, "wall-thickness",
@@ -92,7 +95,8 @@ parse_theme_file (EyesApplet *eyes_applet, FILE *theme_file)
eyes_applet->theme_dir,
token);
}
- fgets (line_buf, 512, theme_file);
+ if (fgets (line_buf, 512, theme_file) == NULL)
+ printf("fgets error\n");
}
}