summaryrefslogtreecommitdiff
path: root/dfltcc.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2019-09-07 21:22:21 -0700
committerJim Meyering <meyering@fb.com>2019-09-07 21:22:21 -0700
commit81c9fe4d0986554ebb1aaccc1ebcf5affb81cbad (patch)
tree4f30f1804bfe5e0fd5c6fd89fef8df1062e76230 /dfltcc.c
parentbe0c5581e38332b2ffa8a4cf92076cfde02872b4 (diff)
downloadgzip-81c9fe4d0986554ebb1aaccc1ebcf5affb81cbad.tar.gz
maint: placate strcmp-vs-STREQ syntax check rule
* dfltcc.c (is_dfltcc_enabled): Use STREQ (env, "0") in place of "!strcmp (env, "0").
Diffstat (limited to 'dfltcc.c')
-rw-r--r--dfltcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dfltcc.c b/dfltcc.c
index ba62968..581f748 100644
--- a/dfltcc.c
+++ b/dfltcc.c
@@ -152,7 +152,7 @@ is_dfltcc_enabled (void)
char facilities[(DFLTCC_FACILITY / 64 + 1) * 8];
char const *env = getenv ("DFLTCC");
- if (env && !strcmp (env, "0"))
+ if (env && STREQ (env, "0"))
return 0;
register int r0 __asm__ ("r0") = sizeof facilities / 8;