diff options
author | Jim Meyering <jim@meyering.net> | 2004-06-01 13:07:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-06-01 13:07:01 +0000 |
commit | 4bc03442d7491466e12f58ceb15227e63a6d57f2 (patch) | |
tree | dfcbce9f3a503a281a4dfdeb31dfafdbea50965b /src | |
parent | f81aaf1fa80f428a55799aa0bb15619db206faa9 (diff) | |
download | coreutils-4bc03442d7491466e12f58ceb15227e63a6d57f2.tar.xz |
(main): Prefer the notation `STREQ (a, b)' over `!strcmp (a, b)'.
Diffstat (limited to 'src')
-rw-r--r-- | src/env.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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], '=')) |