httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject [multi-env] {.name = NULL }
Date Wed, 26 Jan 2005 05:28:34 GMT
On Win32, in the multi-env branch, the presence of
{.name = NULL} confuses VC++. Previously just {NULL} was
used. I'm not sure of the differences, but this patch:
=========================================================
Index: env/c-modules/apreq_access_test/mod_apreq_access_test.c
===================================================================
--- env/c-modules/apreq_access_test/mod_apreq_access_test.c	(revision 126461)
+++ env/c-modules/apreq_access_test/mod_apreq_access_test.c	(working copy)
@@ -53,7 +53,7 @@
 static const command_rec access_cmds[] =
 {
     AP_INIT_TAKE1("TestAccess", access_config, NULL, OR_LIMIT, "'param'"),
-    { .name = NULL }
+    { NULL }
 };

 static void *create_access_config(apr_pool_t *p, char *dummy)
Index: env/mod_apreq.c
===================================================================
--- env/mod_apreq.c	(revision 126461)
+++ env/mod_apreq.c	(working copy)
@@ -758,7 +758,7 @@
                   "Maximum amount of data that will be fed into a parser."),
     AP_INIT_TAKE1("APREQ_MaxBrigade", apreq_set_max_brigade, NULL, OR_ALL,
                   "Maximum in-memory bytes a brigade may use."),
-    { .name = NULL }
+    { NULL }
 };

 /** @} */

=========================================================
allows things to compile for me, and all tests pass.

-- 
best regards,
randy

Mime
View raw message