]> granicus.if.org Git - apache/commitdiff
Eliminate a couple of compiler warnings. I don't like casts but these
authorBill Stoddard <stoddard@apache.org>
Thu, 6 Jul 2000 14:40:36 +0000 (14:40 +0000)
committerBill Stoddard <stoddard@apache.org>
Thu, 6 Jul 2000 14:40:36 +0000 (14:40 +0000)
seem safe.

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

modules/filters/mod_include.c

index 23ef67bd9e1aceec2167bae27e87bdcb5a155f95..95283bee4cece13a2aedcd24231e9c2db57124a1 100644 (file)
@@ -475,7 +475,7 @@ static int get_directive(ap_file_t *in, char *dest, size_t len, ap_pool_t *p)
     }
     /* now get directive */
     while (1) {
-       if (d - dest == len) {
+       if (d - dest == (int)len) {
            return 1;
        }
         *d++ = ap_tolower(c);
@@ -572,7 +572,7 @@ static void parse_string(request_rec *r, const char *in, char *out,
                    /* zero-length variable name causes just the $ to be copied */
                    l = 1;
                }
-               l = (l > end_out - next) ? (end_out - next) : l;
+               l = ((int)l > end_out - next) ? (end_out - next) : l;
                memcpy(next, expansion, l);
                next += l;
                 break;