(batch_convert): Prefer the notation `STREQ (a, b)' over `strcmp (a, b) == 0'.
authorJim Meyering <jim@meyering.net>
Tue, 1 Jun 2004 12:52:31 +0000 (12:52 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 1 Jun 2004 12:52:31 +0000 (12:52 +0000)
src/date.c

index c8db77f..5cb891b 100644 (file)
@@ -234,7 +234,7 @@ batch_convert (const char *input_filename, const char *format)
   size_t buflen;
   struct timespec when;
 
-  if (strcmp (input_filename, "-") == 0)
+  if (STREQ (input_filename, "-"))
     {
       input_filename = _("standard input");
       in_stream = stdin;