register long total_bytes = 0; /* The number of bytes. */
register int ch; /* Each character read. */
- if (!strcmp (file, "-"))
+ if (STREQ (file, "-"))
{
fp = stdin;
have_read_stdin = 1;
if (ferror (fp))
{
error (0, errno, "%s", file);
- if (strcmp (file, "-"))
+ if (!STREQ (file, "-"))
fclose (fp);
return -1;
}
- if (strcmp (file, "-") && fclose (fp) == EOF)
+ if (!STREQ (file, "-") && fclose (fp) == EOF)
{
error (0, errno, "%s", file);
return -1;
register unsigned long checksum = 0;
long total_bytes = 0;
- if (!strcmp (file, "-"))
+ if (STREQ (file, "-"))
{
fd = 0;
have_read_stdin = 1;
if (bytes_read < 0)
{
error (0, errno, "%s", file);
- if (strcmp (file, "-"))
+ if (!STREQ (file, "-"))
close (fd);
return -1;
}
- if (strcmp (file, "-") && close (fd) == -1)
+ if (!STREQ (file, "-") && close (fd) == -1)
{
error (0, errno, "%s", file);
return -1;