summaryrefslogtreecommitdiff
path: root/src/md5sum.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/md5sum.c
parent7154d646cb343aa28459ffbfb5a1ca7057f3c8d7 (diff)
downloadcoreutils-d4257e63c7956d7a77349f0e3b693afa5e1ab9df.tar.xz
Use STREQ rather than strcmp
Diffstat (limited to 'src/md5sum.c')
-rw-r--r--src/md5sum.c6
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");