diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-30 00:16:27 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-30 00:16:27 +0100 |
commit | b230ff9d8f1a393c13f338b030cace0899d5ec26 (patch) | |
tree | d3072de8cd68ba2527d179facd026213fd94cb60 /networking | |
parent | 04e0d8e579b289178b0303a92c705012237f4ca3 (diff) | |
download | busybox-w32-b230ff9d8f1a393c13f338b030cace0899d5ec26.tar.gz busybox-w32-b230ff9d8f1a393c13f338b030cace0899d5ec26.tar.bz2 busybox-w32-b230ff9d8f1a393c13f338b030cace0899d5ec26.zip |
*: use fopen helpers where appropriate
function old new delta
finalize 348 343 -5
parse_resolvconf 306 299 -7
list_i2c_busses_and_exit 495 483 -12
bootchartd_main 1091 1076 -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-39) Total: -39 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/nslookup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nslookup.c b/networking/nslookup.c index dda22de0e..5aa2b35d2 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c | |||
@@ -697,7 +697,7 @@ static void parse_resolvconf(void) | |||
697 | { | 697 | { |
698 | FILE *resolv; | 698 | FILE *resolv; |
699 | 699 | ||
700 | resolv = fopen("/etc/resolv.conf", "r"); | 700 | resolv = fopen_for_read("/etc/resolv.conf"); |
701 | if (resolv) { | 701 | if (resolv) { |
702 | char line[512]; /* "search" is defined to be up to 256 chars */ | 702 | char line[512]; /* "search" is defined to be up to 256 chars */ |
703 | 703 | ||