simplify parsing of /etc/busybox.conf

function                                             old     new   delta
parse_config_file                                    799     667    -132

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2011-05-16 00:01:08 +02:00
parent e0238f852b
commit 4566e172eb
3 changed files with 33 additions and 47 deletions

View File

@@ -71,7 +71,8 @@ int FAST_FUNC get_uidgid(struct bb_uidgid_t *u, const char *ug, int numeric_ok)
}
}
gr = getgrnam(group);
if (!gr) return 0;
if (!gr)
return 0;
u->gid = gr->gr_gid;
}
return 1;