commit | 705fad296447295ef4e71e301c5b7cdbf186d6a1 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Tue Jan 03 23:59:17 2006 +0000 |
committer | Mike Frysinger <vapier@gentoo.org> | Tue Jan 03 23:59:17 2006 +0000 |
tree | e571b8206036240d544680fe2218e30a89080073 | |
parent | bb12d6f728b7adfbf7fd6e062c11835b3965d3b8 [diff] |
just use bb_xfopen()
diff --git a/modutils/lsmod.c b/modutils/lsmod.c index f2ee19f..3d9f700 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c
@@ -169,10 +169,7 @@ FILE *file; char line[4096]; - file = fopen("/proc/modules", "r"); - - if (!file) - bb_error_msg_and_die("Opening /proc/modules"); + file = bb_xfopen("/proc/modules", "r"); while (fgets(line, sizeof(line), file)) { char *tok;