summaryrefslogtreecommitdiff
path: root/networking/interface.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-03-20 21:19:35 +0000
committerDenis Vlasenko2008-03-20 21:19:35 +0000
commitf90ab183d63c64fd2c35f00d65aedbaae8402740 (patch)
tree717976261ccdb8e7ab68c79def5ea10936c0dcd3 /networking/interface.c
parent275b929e0157c7e40a66df108b1e1954b59a2bdf (diff)
downloadbusybox-f90ab183d63c64fd2c35f00d65aedbaae8402740.zip
busybox-f90ab183d63c64fd2c35f00d65aedbaae8402740.tar.gz
*: use fopen_or_warn in few more places
Diffstat (limited to 'networking/interface.c')
-rw-r--r--networking/interface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/interface.c b/networking/interface.c
index 367d2b0..44bd8d3 100644
--- a/networking/interface.c
+++ b/networking/interface.c
@@ -560,9 +560,8 @@ static int if_readlist_proc(char *target)
if (!target)
proc_read = 1;
- fh = fopen(_PATH_PROCNET_DEV, "r");
+ fh = fopen_or_warn(_PATH_PROCNET_DEV, "r");
if (!fh) {
- bb_perror_msg("warning: cannot open %s, limiting output", _PATH_PROCNET_DEV);
return if_readconf();
}
fgets(buf, sizeof buf, fh); /* eat line */