Commit bf601643 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

clean up some warnings dealing with

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
parent f9a03a95
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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));
    }

+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@
#include "util_xml.h"

#include <limits.h>     /* for INT_MAX */
#include <time.h>       /* for time_t */

#ifdef __cplusplus
extern "C" {
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}