From d4257e63c7956d7a77349f0e3b693afa5e1ab9df Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 12 Apr 1998 09:27:45 +0000 Subject: Use STREQ rather than strcmp --- src/fold.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fold.c') diff --git a/src/fold.c b/src/fold.c index 7e4cb57aa..44233d502 100644 --- a/src/fold.c +++ b/src/fold.c @@ -123,7 +123,7 @@ fold_file (char *filename, int width) static char *line_out = NULL; static int allocated_out = 0; - if (!strcmp (filename, "-")) + if (STREQ (filename, "-")) { istream = stdin; have_read_stdin = 1; @@ -212,11 +212,11 @@ fold_file (char *filename, int width) if (ferror (istream)) { error (0, errno, "%s", filename); - if (strcmp (filename, "-")) + if (!STREQ (filename, "-")) fclose (istream); return 1; } - if (strcmp (filename, "-") && fclose (istream) == EOF) + if (!STREQ (filename, "-") && fclose (istream) == EOF) { error (0, errno, "%s", filename); return 1; -- cgit v1.2.3-54-g00ecf