diff options
author | Jim Meyering <jim@meyering.net> | 1998-04-12 09:27:45 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-04-12 09:27:45 +0000 |
commit | d4257e63c7956d7a77349f0e3b693afa5e1ab9df (patch) | |
tree | 37c7c7ae817f492796a4b084772a4e2c39acedb9 /src/md5sum.c | |
parent | 7154d646cb343aa28459ffbfb5a1ca7057f3c8d7 (diff) | |
download | coreutils-d4257e63c7956d7a77349f0e3b693afa5e1ab9df.tar.gz |
Use STREQ rather than strcmp
Diffstat (limited to 'src/md5sum.c')
-rw-r--r-- | src/md5sum.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/md5sum.c b/src/md5sum.c index 11cd0c1fa..1700563fd 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -1,6 +1,6 @@ /* Compute MD5 checksum of files or strings according to the definition of MD5 in RFC 1321 from April 1992. - Copyright (C) 95, 96, 1997 Free Software Foundation, Inc. + Copyright (C) 95, 96, 1997, 1998 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -240,7 +240,7 @@ md5_file (const char *filename, int binary, unsigned char *md5_result) FILE *fp; int err; - if (strcmp (filename, "-") == 0) + if (STREQ (filename, "-")) { have_read_stdin = 1; fp = stdin; @@ -289,7 +289,7 @@ md5_check (const char *checkfile_name) char *line; size_t line_chars_allocated; - if (strcmp (checkfile_name, "-") == 0) + if (STREQ (checkfile_name, "-")) { have_read_stdin = 1; checkfile_name = _("standard input"); |