]> granicus.if.org Git - apache/commitdiff
Fix a warning associated with the ap_send_fd change from earlier today.
authorRyan Bloom <rbb@apache.org>
Tue, 11 Jul 2000 03:48:18 +0000 (03:48 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 11 Jul 2000 03:48:18 +0000 (03:48 +0000)
This just changes a couple of long's to ap_size_t.

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

include/http_protocol.h
modules/http/http_core.c
modules/http/http_protocol.c

index 14cb6c0adcfc86cb19d1751a45230a9de72d599f..5759487e776af6d8c52f219d7cd5ca053b040286 100644 (file)
@@ -183,7 +183,7 @@ API_EXPORT(int) ap_discard_request_body(request_rec *r);
 
 API_EXPORT(int) ap_set_byterange(request_rec *r);
 API_EXPORT(int) ap_each_byterange(request_rec *r, ap_off_t *offset,
-                                 long *length);
+                                 ap_size_t *length);
 
 /* Support for the Basic authentication protocol.  Note that there's
  * nothing that prevents these from being in mod_auth.c, except that other
index 93d874fea2a6e05d1e77a9e17c3e0e84db9fd504..3224cb7f5733ab982900453793ef8687a55d233e 100644 (file)
@@ -2859,7 +2859,7 @@ static int default_handler(request_rec *r)
            }
            else {
                ap_off_t offset;
-               long length;
+               ap_size_t length;
                while (ap_each_byterange(r, &offset, &length)) {
                    ap_send_mmap(mm, r, offset, length);
                }
index bb78d74920b12bec5bcf10e2bcf2f40c1ad446ef..8b6d59fdcb5a98e9482d616d8ecbc080f013ab9d 100644 (file)
@@ -240,7 +240,7 @@ static int parse_byterange(char *range, long clength, long *start, long *end)
 }
 
 static int internal_byterange(int, long *, request_rec *, const char **,
-                             ap_off_t *, long *);
+                             ap_off_t *, ap_size_t *);
 
 API_EXPORT(int) ap_set_byterange(request_rec *r)
 {
@@ -316,7 +316,7 @@ API_EXPORT(int) ap_set_byterange(request_rec *r)
 }
 
 API_EXPORT(int) ap_each_byterange(request_rec *r, ap_off_t *offset,
-                                 long *length)
+                                 ap_size_t *length)
 {
     return internal_byterange(1, NULL, r, &r->range, offset, length);
 }
@@ -333,7 +333,7 @@ API_EXPORT(int) ap_each_byterange(request_rec *r, ap_off_t *offset,
  */
 static int internal_byterange(int realreq, long *tlength, request_rec *r,
                               const char **r_range, ap_off_t *offset,
-                             long *length)
+                             ap_size_t *length)
 {
     long range_start, range_end;
     char *range;