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/md5sum.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/md5sum.c') 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"); -- cgit v1.2.3-54-g00ecf