You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by ra...@madhaus.utcs.utoronto.ca on 1996/05/08 02:19:09 UTC
Fix for new mod_status.c
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