From: Jim Meyering Date: Tue, 1 Jun 2004 13:07:01 +0000 (+0000) Subject: (main): Prefer the notation `STREQ (a, b)' over `!strcmp (a, b)'. X-Git-Tag: v5.3.0~1440 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bc03442d7491466e12f58ceb15227e63a6d57f2;p=thirdparty%2Fcoreutils.git (main): Prefer the notation `STREQ (a, b)' over `!strcmp (a, b)'. --- diff --git a/src/env.c b/src/env.c index 2632026333..018ee80053 100644 --- a/src/env.c +++ b/src/env.c @@ -168,7 +168,7 @@ main (register int argc, register char **argv, char **envp) } } - if (optind < argc && !strcmp (argv[optind], "-")) + if (optind < argc && STREQ (argv[optind], "-")) ignore_environment = 1; if (ignore_environment) @@ -182,7 +182,7 @@ main (register int argc, register char **argv, char **envp) if (optc == 'u') putenv (optarg); /* Requires GNU putenv. */ - if (optind < argc && !strcmp (argv[optind], "-")) + if (optind < argc && STREQ (argv[optind], "-")) ++optind; while (optind < argc && strchr (argv[optind], '='))