]> granicus.if.org Git - apache/commitdiff
clean up some warnings dealing with
authorJeff Trawick <trawick@apache.org>
Wed, 28 Mar 2001 16:34:05 +0000 (16:34 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 28 Mar 2001 16:34:05 +0000 (16:34 +0000)
1) mismatches between printf format strings and arguments
2) wrong type for last parm to ap[r]_xml_to_text
3) missing time.h decls

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

modules/dav/fs/lock.c
modules/dav/main/mod_dav.c
modules/dav/main/mod_dav.h
modules/dav/main/util_lock.c

index 77db4bade0dda5e8e5584c4d5d3969ec48195301..cd7c43188d3a17ba0717cff51499bc7740f3636c 100644 (file)
@@ -712,7 +712,8 @@ static dav_error * dav_fs_load_lock_record(dav_lockdb *lockdb, dav_datum key,
                                 DAV_ERR_LOCK_CORRUPT_DB,
                                 apr_psprintf(p,
                                             "The lock database was found to "
-                                            "be corrupt. offset %i, c=%02x",
+                                            "be corrupt. offset %"
+                                             APR_SIZE_T_FMT ", c=%02x",
                                             offset, val.dptr[offset]));
        }
     }
@@ -909,7 +910,8 @@ static dav_error * dav_fs_save_locknull_list(apr_pool_t *p, const char *dirpath,
         || amt != pbuf->cur_len) {
        err = dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0,
                            apr_psprintf(p,
-                                       "Error writing %i bytes to %s",
+                                       "Error writing %" APR_SIZE_T_FMT 
+                                        " bytes to %s",
                                        pbuf->cur_len, pathname));
     }
 
index b703871c69326dd900df774eb882bcffe22a54b0..bfa8d780296fa230765c07588e333ae25f0c0734 100644 (file)
@@ -3542,7 +3542,7 @@ static int dav_method_update(request_rec *r)
     int is_label = 0;
     int depth;
     int result;
-    int tsize;
+    apr_size_t tsize;
     const char *target;
     dav_response *multi_response;
     dav_error *err;
index 6278624ce9dcbac60ebe14080db5bf35bd51e3e9..29a2c619b95f493980f453fcd873f71e7223b785 100644 (file)
@@ -68,6 +68,7 @@
 #include "util_xml.h"
 
 #include <limits.h>     /* for INT_MAX */
+#include <time.h>       /* for time_t */
 
 #ifdef __cplusplus
 extern "C" {
index 46daff601ed687ea7b437c7b1ffd52a3d9e104c8..e4c231aa71b8170523c7bb08aaddd96fb08a04fb 100644 (file)
@@ -173,7 +173,7 @@ const char *dav_lock_get_activelock(request_rec *r, dav_lock *lock,
        }
        else {
            time_t now = time(NULL);
-           sprintf(tmp, "Second-%lu", lock->timeout - now);
+           sprintf(tmp, "Second-%lu", (long unsigned int)(lock->timeout - now));
            dav_buffer_append(p, pbuf, tmp);
        }