diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-31 00:11:57 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-31 00:11:57 +0300 |
commit | cb04ff5c68c1363837d8cd9f2170bdf64625b872 (patch) | |
tree | adde9e8d46920ae48f3768e6b7fa76bdd123f618 /scripts/basic | |
parent | 80602a98bcc3100279e09e1291d47a0adb6addb1 (diff) |
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/basic')
-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; |