*: 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>
This commit is contained in:
@@ -697,7 +697,7 @@ static void parse_resolvconf(void)
|
||||
{
|
||||
FILE *resolv;
|
||||
|
||||
resolv = fopen("/etc/resolv.conf", "r");
|
||||
resolv = fopen_for_read("/etc/resolv.conf");
|
||||
if (resolv) {
|
||||
char line[512]; /* "search" is defined to be up to 256 chars */
|
||||
|
||||
|
Reference in New Issue
Block a user