]> granicus.if.org Git - apache/commitdiff
Fix some compile warnings in mod_file_cache.
authorJeff Trawick <trawick@apache.org>
Wed, 26 Jul 2000 14:03:08 +0000 (14:03 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 26 Jul 2000 14:03:08 +0000 (14:03 +0000)
Submitted by: Greg Ames
Reviewed by: Jeff Trawick

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

modules/cache/mod_file_cache.c

index 70c9c7144ff23dda1a4e547032efbe21898cf550..08cf6dd7ac6c0ae82a7d27106ae9ed3ffa603bdf 100644 (file)
@@ -391,7 +391,7 @@ static int mmap_handler(request_rec *r, a_file *file, int rangestatus)
         ap_send_mmap (file->mm, r, 0, file->finfo.size);
     }
     else {
-        long length;
+        ap_size_t length;
         ap_off_t offset;
         while (ap_each_byterange(r, &offset, &length)) {
             ap_send_mmap(file->mm, r, offset, length);
@@ -406,7 +406,7 @@ static int sendfile_handler(request_rec *r, a_file *file, int rangestatus)
 #if APR_HAS_SENDFILE
     ap_size_t length, nbytes;
     ap_off_t offset = 0;
-    ap_status_t rv
+    ap_status_t rv = APR_EINIT;
 
     if (!rangestatus) {
         rv = ap_send_fd(file->file, r, 0, file->finfo.size, &nbytes);
@@ -562,7 +562,7 @@ static void register_hooks(void)
     ap_hook_translate_name(file_cache_xlat, aszPre, NULL, AP_HOOK_MIDDLE); 
     */
 
-};
+}
 
 static const handler_rec file_cache_handlers[] =
 {