changeset 3649:8c63af0ab91a HEAD

Fixed some printf-type mismatches
author Timo Sirainen <tss@iki.fi>
date Wed, 12 Oct 2005 20:14:21 +0300
parents 2c19efe2ddb6
children 8484001f1584
files src/auth/passdb-pam.c src/lib-index/mail-transaction-log-view.c src/lib/ioloop-notify-dn.c
diffstat 3 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/passdb-pam.c	Tue Oct 11 15:35:12 2005 +0300
+++ b/src/auth/passdb-pam.c	Wed Oct 12 20:14:21 2005 +0300
@@ -299,7 +299,7 @@
 		result = PASSDB_RESULT_INTERNAL_FAILURE;
 	} else if ((size_t)ret < sizeof(result)) {
 		auth_request_log_error(auth_request, "pam",
-			"Child process returned only %d bytes", ret);
+			"Child process returned only %d bytes", (int)ret);
 		result = PASSDB_RESULT_INTERNAL_FAILURE;
 	} else {
 		memcpy(&result, buf, sizeof(result));
--- a/src/lib-index/mail-transaction-log-view.c	Tue Oct 11 15:35:12 2005 +0300
+++ b/src/lib-index/mail-transaction-log-view.c	Wed Oct 12 20:14:21 2005 +0300
@@ -354,7 +354,7 @@
 	if ((hdr_size - sizeof(*hdr)) % record_size != 0) {
 		mail_transaction_log_file_set_corrupted(file,
 			"record size wrong (type 0x%x, "
-			"offset=%"PRIuUOFF_T", size=%u %% %u != 0)",
+			"offset=%"PRIuUOFF_T", size=%"PRIuSIZE_T" %% %u != 0)",
 			hdr->type & MAIL_TRANSACTION_TYPE_MASK,
                         view->cur_offset, (hdr_size - sizeof(*hdr)),
 			record_size);
--- a/src/lib/ioloop-notify-dn.c	Tue Oct 11 15:35:12 2005 +0300
+++ b/src/lib/ioloop-notify-dn.c	Wed Oct 12 20:14:21 2005 +0300
@@ -43,8 +43,10 @@
 	ret = read(event_pipe[0], &fd, sizeof(fd));
 	if (ret < 0)
 		i_fatal("read(event_pipe) failed: %m");
-	if (ret != sizeof(fd))
-		i_fatal("read(event_pipe) returned %d != %d", ret, sizeof(fd));
+	if (ret != sizeof(fd)) {
+		i_fatal("read(event_pipe) returned %d != %"PRIuSIZE_T,
+			ret, sizeof(fd));
+	}
 
 	if (gettimeofday(&ioloop_timeval, &ioloop_timezone) < 0)
 		i_fatal("gettimeofday(): %m");