From cb04ff5c68c1363837d8cd9f2170bdf64625b872 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 30 Dec 2006 21:11:57 +0000 Subject: fixdep.c: avoit doing memcmp in most cases uidgid_get.c: add forgotten copyright notice pwd/grp/shadow: avoid collisions with libc names --- scripts/basic/fixdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 65bae4d..a96239d 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; -- cgit v1.1