]> granicus.if.org Git - apache/commitdiff
fix a bunch of apr_ssize_t/apr_size_t discrepancies
authorJeff Trawick <trawick@apache.org>
Mon, 27 Nov 2000 21:03:11 +0000 (21:03 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 27 Nov 2000 21:03:11 +0000 (21:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87094 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.c
modules/filters/mod_include.h

index b7d83d930789306916f1d88755136cc76b06e928..dae436a9343d55cf932728f1c79ab741fa13a56e 100644 (file)
@@ -165,7 +165,7 @@ static void add_include_vars(request_rec *r, char *timefmt)
 static ap_bucket *find_start_sequence(ap_bucket *dptr, include_ctx_t *ctx,
                                       ap_bucket_brigade *bb, int *do_cleanup)
 {
-    apr_ssize_t len;
+    apr_size_t len;
     const char *c;
     const char *buf;
     const char *str = STARTING_SEQUENCE;
@@ -245,7 +245,7 @@ static ap_bucket *find_start_sequence(ap_bucket *dptr, include_ctx_t *ctx,
 
 static ap_bucket *find_end_sequence(ap_bucket *dptr, include_ctx_t *ctx, ap_bucket_brigade *bb)
 {
-    apr_ssize_t len;
+    apr_size_t len;
     const char *c;
     const char *buf;
     const char *str = ENDING_SEQUENCE;
@@ -344,7 +344,7 @@ static apr_status_t get_combined_directive (include_ctx_t *ctx,
     int         done = 0;
     ap_bucket  *dptr;
     const char *tmp_from;
-    apr_ssize_t tmp_from_len;
+    apr_size_t tmp_from_len;
 
     /* If the tag length is longer than the tmp buffer, allocate space. */
     if (ctx->tag_length > tmp_buf_size-1) {
@@ -770,7 +770,7 @@ static int include_cgi(char *s, request_rec *r, ap_filter_t *next,
 
     rr_status = ap_run_sub_req(rr);
     if (ap_is_HTTP_REDIRECT(rr_status)) {
-        apr_ssize_t len_loc, h_wrt;
+        apr_size_t len_loc, h_wrt;
         const char *location = apr_table_get(rr->headers_out, "Location");
 
         location = ap_escape_html(rr->pool, location);
@@ -1186,7 +1186,7 @@ static int handle_echo(include_ctx_t *ctx, request_rec *r, ap_bucket *head_ptr,
     char       *tag_val   = NULL;
     const char *echo_text = NULL;
     ap_bucket  *tmp_buck;
-    apr_ssize_t e_len, e_wrt;
+    apr_size_t e_len, e_wrt;
     enum {E_NONE, E_URL, E_ENTITY} encode;
 
     encode = E_ENTITY;
@@ -1455,7 +1455,7 @@ static int handle_fsize(include_ctx_t *ctx, request_rec *r, ap_bucket *head_ptr,
     char *tag     = NULL;
     char *tag_val = NULL;
     apr_finfo_t  finfo;
-    apr_ssize_t  s_len, s_wrt;
+    apr_size_t  s_len, s_wrt;
     ap_bucket   *tmp_buck;
     char parsed_string[MAX_STRING_LEN];
 
@@ -1517,7 +1517,7 @@ static int handle_flastmod(include_ctx_t *ctx, request_rec *r, ap_bucket *head_p
     char *tag     = NULL;
     char *tag_val = NULL;
     apr_finfo_t  finfo;
-    apr_ssize_t  t_len, t_wrt;
+    apr_size_t  t_len, t_wrt;
     ap_bucket   *tmp_buck;
     char parsed_string[MAX_STRING_LEN];
 
@@ -2647,7 +2647,7 @@ static int handle_printenv(include_ctx_t *ctx, request_rec *r, ap_bucket *head_p
             apr_table_entry_t *elts = (apr_table_entry_t *)arr->elts;
             int i;
             char *key_text, *val_text;
-            apr_ssize_t   k_len, v_len, t_wrt;
+            apr_size_t   k_len, v_len, t_wrt;
 
             *inserted_head = NULL;
             for (i = 0; i < arr->nelts; ++i) {
index 554d9998bbe12f143f5359bd3fa6246b2695192e..3fe35f88edafc5cdf4bef93fb885a27871d9da33 100644 (file)
@@ -183,7 +183,7 @@ typedef enum {TOK_UNKNOWN, TOK_IF, TOK_SET, TOK_ECHO, TOK_ELIF, TOK_ELSE,
 
 #define CREATE_ERROR_BUCKET(cntx, t_buck, h_ptr, ins_head)        \
 {                                                                 \
-    apr_ssize_t e_wrt;                                            \
+    apr_size_t e_wrt;                                             \
     t_buck = ap_bucket_create_heap(cntx->error_str,               \
                                    ctx->error_length, 1, &e_wrt); \
     AP_BUCKET_INSERT_BEFORE(h_ptr, t_buck);                       \