diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-30 21:11:57 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-30 21:11:57 +0000 |
commit | cb04ff5c68c1363837d8cd9f2170bdf64625b872 (patch) | |
tree | adde9e8d46920ae48f3768e6b7fa76bdd123f618 /scripts | |
parent | 80602a98bcc3100279e09e1291d47a0adb6addb1 (diff) | |
download | busybox-cb04ff5c68c1363837d8cd9f2170bdf64625b872.tar.gz |
fixdep.c: avoit doing memcmp in most cases
uidgid_get.c: add forgotten copyright notice
pwd/grp/shadow: avoid collisions with libc names
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/basic/fixdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 65bae4dac..a96239d38 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c @@ -239,11 +239,11 @@ void parse_config_file(char *map, size_t len) /* We have at least 5 chars: for() has * "p < end-4", not "p <= end-4" * therefore we don't need to check p <= end-5 here */ - if (p[4] == '_') { + if (p[4] == '_') if (!memcmp(p, "SKIP", 4)) goto conf5; - } /* Ehhh, gcc is too stupid to just compare it as 32bit int */ - if (!memcmp(p, "USE_", 4)) goto conf4; + if (p[0] == 'U') + if (!memcmp(p, "USE_", 4)) goto conf4; continue; conf4: off = 4; |