summaryrefslogtreecommitdiff
path: root/src/dircolors.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-04-14 15:17:32 +0000
committerJim Meyering <jim@meyering.net>1998-04-14 15:17:32 +0000
commit713c315978828f693f84e10302cdf895816b4c5e (patch)
tree4831719b6efec15cb5445f21c100a3c3386c95d3 /src/dircolors.c
parent8cc46c2a189e0bf16dd83705604396da42bb3055 (diff)
downloadcoreutils-713c315978828f693f84e10302cdf895816b4c5e.tar.xz
Use STREQ in string equality tests, not strcmp.
Diffstat (limited to 'src/dircolors.c')
-rw-r--r--src/dircolors.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dircolors.c b/src/dircolors.c
index 336c0580c..6f0a3c8f8 100644
--- a/src/dircolors.c
+++ b/src/dircolors.c
@@ -1,5 +1,5 @@
/* dircolors - output commands to set the LS_COLOR environment variable
- Copyright (C) 1994, 1995, 1997 H. Peter Anvin
+ Copyright (C) 1994, 1995, 1997, 1998 H. Peter Anvin
Copyright (C) 96, 97, 1998 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -295,7 +295,7 @@ dc_parse_stream (FILE *fp, const char *filename)
unrecognized = 0;
if (strcasecmp (keywd, "TERM") == 0)
{
- if (strcmp (arg, term) == 0)
+ if (STREQ (arg, term))
state = ST_TERMSURE;
else if (state != ST_TERMSURE)
state = ST_TERMNO;
@@ -376,7 +376,7 @@ dc_parse_file (const char *filename)
FILE *fp;
int err;
- if (strcmp (filename, "-") == 0)
+ if (STREQ (filename, "-"))
{
have_read_stdin = 1;
fp = stdin;