diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-02-27 16:11:15 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-02-27 16:11:15 +0000 |
commit | 687c1d1454898339b5cf00654359a326089ffccd (patch) | |
tree | 72143e9b83b86f114c528186f071711bc86cf205 /dmi.c | |
parent | 606fb4b58d31c17c91eb2eb57c7eda76fd1f86a1 (diff) | |
download | ldetect-687c1d1454898339b5cf00654359a326089ffccd.tar ldetect-687c1d1454898339b5cf00654359a326089ffccd.tar.gz ldetect-687c1d1454898339b5cf00654359a326089ffccd.tar.bz2 ldetect-687c1d1454898339b5cf00654359a326089ffccd.tar.xz ldetect-687c1d1454898339b5cf00654359a326089ffccd.zip |
allow to modify the fh type more easily by adding more wrappers
Diffstat (limited to 'dmi.c')
-rw-r--r-- | dmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |