]> granicus.if.org Git - apache/commitdiff
Update to reflect the absence of the apr_bucket_shared
authorCliff Woolley <jwoolley@apache.org>
Tue, 27 Feb 2001 21:02:15 +0000 (21:02 +0000)
committerCliff Woolley <jwoolley@apache.org>
Tue, 27 Feb 2001 21:02:15 +0000 (21:02 +0000)
struct and the newly-added start field of the apr_bucket struct

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

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

index accbd10913730fcd7eafd0dd0d5503e5c96563af..10250e04e0674e352a3d5b33b6cfba8edd9e1a5d 100644 (file)
@@ -561,7 +561,7 @@ struct ap_bucket_error {
     /** The error code */
     int status;
     /** The error string */
-    const char    *start;
+    const char    *data;
 };
 
 AP_DECLARE_DATA extern const apr_bucket_type_t ap_bucket_type_error;
index ee1234a10fa057abc57a4528176c68b6186d5152..a42e436ac6b7bd956300df4a3df1b75ca3309255 100644 (file)
@@ -3219,8 +3219,7 @@ static apr_status_t core_output_filter(ap_filter_t *f, apr_bucket_brigade *b)
              */
             else if (APR_BUCKET_IS_FILE(e)
                      && (e->length >= AP_MIN_SENDFILE_BYTES)) {
-                apr_bucket_shared *s = e->data;
-                apr_bucket_file *a = s->data;
+                apr_bucket_file *a = e->data;
     
                 /* We can't handle more than one file bucket at a time
                  * so we split here and send the file we have already
@@ -3233,7 +3232,7 @@ static apr_status_t core_output_filter(ap_filter_t *f, apr_bucket_brigade *b)
     
                 fd = a->fd;
                 flen = e->length;
-                foffset = s->start;
+                foffset = e->start;
             }
             else {
                 const char *str;
index 071119882be7b364d4618473f7479ce249e1c512..86eaacecbf1092c350eae5dcf389c5a57cd26472 100644 (file)
@@ -78,11 +78,10 @@ AP_DECLARE(apr_bucket *) ap_bucket_error_make(apr_bucket *b, int error,
         return NULL;
     }
     h->status = error;
-    if (buf) {
-        h->start = apr_pstrdup(p, buf);
-    }
+    h->data = (buf) ? apr_pstrdup(p, buf) : NULL;
 
     b->length = 0;
+    b->start  = 0;
     b->type = &ap_bucket_type_error;
     b->data = h;
     return b;