Use `(void)0' as second arg to add macro.
authorJim Meyering <jim@meyering.net>
Tue, 16 Jul 1996 05:08:29 +0000 (05:08 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 16 Jul 1996 05:08:29 +0000 (05:08 +0000)
Omitting that second arg made some HPUX C compiler report an error.
From Kaveh R. Ghazi.

lib/strftime.c

index 934e61c30fcfadc3afef2f898eb6fbea9244bb12..85e3c5feea7e9bcf6afbdced04c68e4d00595095 100644 (file)
@@ -301,7 +301,7 @@ strftime (s, maxsize, format, tp)
            size_t len = strftime (p, maxsize - i, subfmt, tp);
            if (len == 0 && *subfmt)
              return 0;
-           add(len, );
+           add(len, (void) 0);
          }
          break;