]> granicus.if.org Git - apache/commitdiff
Get rid of some compile warnings on systems with no sendfile and/or lack of
authorJeff Trawick <trawick@apache.org>
Thu, 12 Oct 2000 03:17:36 +0000 (03:17 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 12 Oct 2000 03:17:36 +0000 (03:17 +0000)
one or more rlimit controls.  (Solaris 2.8 hits both of these.)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86554 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index f2ab725fcce2197753d16b1361c61741aae8a779..d71a5bc58963ac43cb7979bda3b3bd1615fbc24e 100644 (file)
@@ -2493,7 +2493,7 @@ static const char *set_interpreter_source(cmd_parms *cmd, core_dir_config *d,
 
 #if !defined (RLIMIT_CPU) || !(defined (RLIMIT_DATA) || defined (RLIMIT_VMEM) || defined(RLIMIT_AS)) || !defined (RLIMIT_NPROC)
 static const char *no_set_limit(cmd_parms *cmd, core_dir_config *conf,
-                                char *arg, char *arg2)
+                                const char *arg, const char *arg2)
 {
     ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, cmd->server,
                 "%s not supported on this platform", cmd->cmd->name);
@@ -3420,7 +3420,9 @@ static int core_output_filter(ap_filter_t *f, ap_bucket_brigade *b)
         }
         if (fd) {
             apr_hdtr_t hdtr;
+#if APR_HAS_SENDFILE
             apr_int32_t flags = 0;
+#endif
 
             memset(&hdtr, '\0', sizeof(hdtr));
             if (nvec) {