]> granicus.if.org Git - apache/commitdiff
* Fix compiler warning on 64 bit systems (cast from pointer to integer of different...
authorRuediger Pluem <rpluem@apache.org>
Thu, 8 Apr 2010 06:45:34 +0000 (06:45 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 8 Apr 2010 06:45:34 +0000 (06:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@931794 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 47ae6ad53dea1341b2a44c4512d9c7155cbd34bc..6045951fb2392e4066d24b58038b25a281662301 100644 (file)
@@ -2572,7 +2572,7 @@ static const char *include_config (cmd_parms *cmd, void *dummy,
     ap_directive_t *conftree = NULL;
     const char *conffile, *error;
     unsigned *recursion;
-    int optional = (int)cmd->cmd->cmd_data;
+    int optional = cmd->cmd->cmd_data ? 1 : 0;
     void *data;
 
     apr_pool_userdata_get(&data, "ap_include_sentinel", cmd->pool);