summaryrefslogtreecommitdiffstats
path: root/dmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'dmi.c')
-rw-r--r--dmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dmi.c b/dmi.c
index b0df357..d316ed2 100644
--- a/dmi.c
+++ b/dmi.c
@@ -195,7 +195,7 @@ static struct dmi_entries entries_matching_criteria(struct criteria criteria) {
int previous_refine = 0;
- for (line = 1; fh_gets(buf, sizeof(buf) - 1, f); line++) {
+ for (line = 1; fh_gets(buf, sizeof(buf) - 1, &f); line++) {
char *s = skip_leading_spaces(buf);
if (*s == '#') continue; // skip comments
@@ -261,7 +261,7 @@ static struct dmi_entries entries_matching_criteria(struct criteria criteria) {
}
}
foreach_indent(0, ifree(constraints[i]));
- fh_close(f);
+ fh_close(&f);
realloc(r.entries, sizeof(*r.entries) * r.nb);
return r;