]> granicus.if.org Git - apache/commitdiff
axe an unused function
authorJeff Trawick <trawick@apache.org>
Wed, 17 Jul 2002 14:52:36 +0000 (14:52 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 17 Jul 2002 14:52:36 +0000 (14:52 +0000)
fix some format strings used with apr_size_t and apr_ssize_t

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

modules/experimental/cache_pqueue.c
modules/experimental/mod_disk_cache.c
modules/experimental/mod_mem_cache.c

index 5bf677addc6253b8095cf15a2320c9e1e23f80c8..0b458b79c65b6855e86228b1a574f6c01ebf8b82 100644 (file)
@@ -303,7 +303,7 @@ void cache_pq_dump(cache_pqueue_t *q,
     fprintf(stdout,"posn\tleft\tright\tparent\tminchild\t...\n");
     for (i = 1; i < q->size ;i++) {
         fprintf(stdout,
-                "%d\t%d\t%d\t%d\t%d\t",
+                "%d\t%d\t%d\t%d\t%" APR_SSIZE_T_FMT "\t",
                 i,
                 left(i), right(i), parent(i),
                 minchild(q, i));
index dcc081eab35fb496da6771736b6ce2042bfc442f..38e5b448e8572ea01a988ca3f5c1c6312a16f263 100644 (file)
@@ -427,11 +427,6 @@ static int open_entity(cache_handle_t *h, request_rec *r, const char *type, cons
     return OK;
 }
 
-static int remove_url(const char *type, char *key) 
-{
-  return OK;
-}
-
 static int remove_entity(cache_handle_t *h) 
 {
     /* Null out the cache object pointer so next time we start from scratch  */
index 8c9a203909875b7367dc8f272cb888ae32f8e9d7..afd14e2bc0f870ab0dfdb8c2bd2c7b6ce3e3c598 100644 (file)
@@ -1045,7 +1045,7 @@ static const char
 {
     apr_size_t val;
 
-    if (sscanf(arg, "%d", &val) != 1) {
+    if (sscanf(arg, "%" APR_SIZE_T_FMT, &val) != 1) {
         return "MCacheSize argument must be an integer representing the max cache size in KBytes.";
     }
     sconf->max_cache_size = val*1024;
@@ -1056,7 +1056,7 @@ static const char
 {
     apr_size_t val;
 
-    if (sscanf(arg, "%d", &val) != 1) {
+    if (sscanf(arg, "%" APR_SIZE_T_FMT, &val) != 1) {
         return "MCacheMinObjectSize value must be an integer (bytes)";
     }
     sconf->min_cache_object_size = val;
@@ -1067,7 +1067,7 @@ static const char
 {
     apr_size_t val;
 
-    if (sscanf(arg, "%d", &val) != 1) {
+    if (sscanf(arg, "%" APR_SIZE_T_FMT, &val) != 1) {
         return "MCacheMaxObjectSize value must be an integer (bytes)";
     }
     sconf->max_cache_object_size = val;
@@ -1078,7 +1078,7 @@ static const char
 {
     apr_size_t val;
 
-    if (sscanf(arg, "%d", &val) != 1) {
+    if (sscanf(arg, "%" APR_SIZE_T_FMT, &val) != 1) {
         return "MCacheMaxObjectCount value must be an integer";
     }
     sconf->max_object_cnt = val;