From: Jim Meyering Date: Tue, 1 Jun 2004 12:52:14 +0000 (+0000) Subject: (nextarg): Prefer the notation `STREQ (a, b)' over `strcmp (a, b) == 0'. X-Git-Tag: v5.3.0~1445 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c3e1584ed8e8c4fad18e729f0b4a2d278294934;p=thirdparty%2Fcoreutils.git (nextarg): Prefer the notation `STREQ (a, b)' over `strcmp (a, b) == 0'. --- diff --git a/src/expr.c b/src/expr.c index d085b4be78..d1500380cf 100644 --- a/src/expr.c +++ b/src/expr.c @@ -368,7 +368,7 @@ nextarg (char const *str) return 0; else { - bool r = strcmp (*args, str) == 0; + bool r = STREQ (*args, str); args += r; return r; }