httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ras...@madhaus.utcs.utoronto.ca
Subject Fix for new mod_status.c
Date Wed, 08 May 1996 00:19:09 GMT
When initializing an array of structures, each structure element is
generally enclosed in braces.  Some compilers will spit out a warning
on this, gcc included.  Didn't we all agree on using -Wall?

Anyway, here is the patch which will shut up gcc:

*** mod_status.c        Tue May  7 20:13:21 1996
--- mod_status.new      Tue May  7 20:14:11 1996
***************
*** 168,177 ****
  {
      struct stat_opt options[] =        /* see #defines above */
!     {
!       STAT_OPT_REFRESH, "refresh", "Refresh",
!         STAT_OPT_NOTABLE, "notable", NULL,
!         STAT_OPT_AUTO, "auto", NULL,
!       STAT_OPT_END, NULL, NULL
!     };
      char *loc;
      time_t nowtime=time(NULL);
--- 168,175 ----
  {
      struct stat_opt options[] =        /* see #defines above */
!     { { STAT_OPT_REFRESH, "refresh", "Refresh" },
!     { STAT_OPT_NOTABLE, "notable", NULL },
!     { STAT_OPT_AUTO, "auto", NULL },
!     { STAT_OPT_END, NULL, NULL } };
      char *loc;
      time_t nowtime=time(NULL);

-Rasmus

Mime
View raw message