]> granicus.if.org Git - apache/commitdiff
Fix up some type mismatches that are causing compiler errors in Metrowerks on NetWare
authorBradley Nicholes <bnicholes@apache.org>
Wed, 15 Jun 2005 21:37:10 +0000 (21:37 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Wed, 15 Jun 2005 21:37:10 +0000 (21:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@190819 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_disk_cache.c
modules/cache/mod_mem_cache.c

index 52960a6a6451deb7752bff5dbb062bb0e979c1e8..d13c440c92265e78b13d65db080758669af62e0c 100644 (file)
@@ -811,7 +811,7 @@ static apr_status_t store_headers(cache_handle_t *h, request_rec *r, cache_info
 
     disk_info.name_len = strlen(dobj->name);
 
-    iov[0].iov_base = &disk_info;
+    iov[0].iov_base = (caddr_t)&disk_info;
     iov[0].iov_len = sizeof(disk_cache_info_t);
     iov[1].iov_base = (void*)dobj->name;
     iov[1].iov_len = disk_info.name_len;
index b5ddead9537802be14303858cb4b138a6d8dec17..f1be48d47100a92d04224fda97f57bd76ef2ef8b 100644 (file)
@@ -218,7 +218,7 @@ static void cleanup_cache_object(cache_object_t *obj)
 
     /* Cleanup the cache_object_t */
     if (obj->key) {
-        free(obj->key);
+        free((void*)obj->key);
     }
 
     free(obj);
@@ -381,7 +381,7 @@ static int create_entity(cache_handle_t *h, cache_type_e type_e,
         cleanup_cache_object(obj);
         return DECLINED;
     }
-    memcpy(obj->key, key, key_len);
+    memcpy((void*)obj->key, key, key_len);
 
     /* Allocate and init mem_cache_object_t */
     mobj = calloc(1, sizeof(*mobj));