summaryrefslogtreecommitdiff
path: root/src/cut.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-04-12 09:27:45 +0000
committerJim Meyering <jim@meyering.net>1998-04-12 09:27:45 +0000
commitd4257e63c7956d7a77349f0e3b693afa5e1ab9df (patch)
tree37c7c7ae817f492796a4b084772a4e2c39acedb9 /src/cut.c
parent7154d646cb343aa28459ffbfb5a1ca7057f3c8d7 (diff)
downloadcoreutils-d4257e63c7956d7a77349f0e3b693afa5e1ab9df.tar.gz
coreutils-d4257e63c7956d7a77349f0e3b693afa5e1ab9df.tar.bz2
coreutils-d4257e63c7956d7a77349f0e3b693afa5e1ab9df.zip
Use STREQ rather than strcmp
Diffstat (limited to 'src/cut.c')
-rw-r--r--src/cut.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cut.c b/src/cut.c
index f5a79df59..e05c799b2 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -1,5 +1,5 @@
/* cut - remove parts of lines of files
- Copyright (C) 1984, 1997 by David M. Ihnat
+ Copyright (C) 1984, 1997, 1998 by David M. Ihnat
This program is a total rewrite of the Bell Laboratories Unix(Tm)
command of the same name, as of System V. It contains no proprietary
@@ -644,7 +644,7 @@ cut_file (char *file)
{
FILE *stream;
- if (!strcmp (file, "-"))
+ if (STREQ (file, "-"))
{
have_read_stdin = 1;
stream = stdin;
@@ -666,7 +666,7 @@ cut_file (char *file)
error (0, errno, "%s", file);
return 1;
}
- if (!strcmp (file, "-"))
+ if (STREQ (file, "-"))
clearerr (stream); /* Also clear EOF. */
else if (fclose (stream) == EOF)
{