]> granicus.if.org Git - apache/commitdiff
Added some type casting to the appropriate types to avoid type mismatches
authorBradley Nicholes <bnicholes@apache.org>
Tue, 29 Jan 2002 00:23:30 +0000 (00:23 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Tue, 29 Jan 2002 00:23:30 +0000 (00:23 +0000)
on the CodeWarrior compiler

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

modules/aaa/mod_auth_digest.c

index 243b29963ba1270667526d4bf159b08ca6cf974c..194ea2c0370dc59bbe64a1f8021de0dd325fe43e 100644 (file)
@@ -774,7 +774,7 @@ static long gc(void)
             client_list->table[idx] = NULL;
         }
         if (entry) {                    /* remove entry */
-            apr_rmm_free(client_rmm, entry);
+            apr_rmm_free(client_rmm, (apr_rmm_off_t)entry);
             num_removed++;
         }
     }
@@ -810,7 +810,7 @@ static client_entry *add_client(unsigned long key, client_entry *info,
 
     /* try to allocate a new entry */
 
-    entry = apr_rmm_malloc(client_rmm, sizeof(client_entry));
+    entry = (client_entry *)apr_rmm_malloc(client_rmm, sizeof(client_entry));
     if (!entry) {
         long num_removed = gc();
         ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_INFO, 0, s,
@@ -819,7 +819,7 @@ static client_entry *add_client(unsigned long key, client_entry *info,
                      "%ld", num_removed,
                      client_list->num_created - client_list->num_renewed,
                      client_list->num_removed, client_list->num_renewed);
-        entry = apr_rmm_malloc(client_rmm, sizeof(client_entry));
+        entry = (client_entry *)apr_rmm_malloc(client_rmm, sizeof(client_entry));
         if (!entry) {
             return NULL;       /* give up */
         }