aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-04-01 10:35:44 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-04-01 10:35:44 +0000
commit781363cc71872ca5d22d696eddc8f9a26631c70a (patch)
treee984bad22d232e57d8f274e13a1d3be946f6c682
parent348f159689ee530a2d39349b6fa5e27111347e99 (diff)
downloadfetchmail-781363cc71872ca5d22d696eddc8f9a26631c70a.tar.gz
fetchmail-781363cc71872ca5d22d696eddc8f9a26631c70a.tar.bz2
fetchmail-781363cc71872ca5d22d696eddc8f9a26631c70a.zip
a few more type fixes for report/snprintf, patch by Miloslav Trmac.
svn path=/branches/BRANCH_6-3/; revision=4767
-rw-r--r--NEWS1
-rw-r--r--rpa.c2
-rw-r--r--socket.c2
-rw-r--r--transact.c2
4 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index c8fe7d25..9dd92bd5 100644
--- a/NEWS
+++ b/NEWS
@@ -34,6 +34,7 @@ fetchmail 6.3.4 (not yet released):
Patch by Miloslav Trmac.
* tracepolls: add folder information if available. Reported by Terry Brown.
* lexer: add %option noyywrap to avoid link errors about missing yywrap().
+* a few more type fixes for report/snprintf, patch by Miloslav Trmac.
fetchmail 6.3.3 (released 2006-03-30):
diff --git a/rpa.c b/rpa.c
index 433c12e6..7f4c0658 100644
--- a/rpa.c
+++ b/rpa.c
@@ -527,7 +527,7 @@ static int DecBase64(char *bufp)
else if ( ch=='+' ) newx = 62;
else if ( ch=='/' ) newx = 63;
else {
- report(stderr, GT_("dec64 error at char %d: %x\n"), inp - bufp, ch);
+ report(stderr, GT_("dec64 error at char %d: %x\n"), (int)(inp - bufp), ch);
return(0);
}
part=((part & 0x3F)*64) + newx;
diff --git a/socket.c b/socket.c
index b953f3f3..e807ad77 100644
--- a/socket.c
+++ b/socket.c
@@ -752,7 +752,7 @@ static int SSL_verify_callback( int ok_return, X509_STORE_CTX *ctx, int strict )
case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
X509_NAME_oneline(issuer, buf, sizeof(buf));
buf[sizeof(buf) - 1] = '\0';
- report(stderr, GT_("unknown issuer (first %d characters): %s\n"), sizeof(buf)-1, buf);
+ report(stderr, GT_("unknown issuer (first %d characters): %s\n"), (int)(sizeof(buf)-1), buf);
break;
}
}
diff --git a/transact.c b/transact.c
index 839cc181..66016d14 100644
--- a/transact.c
+++ b/transact.c
@@ -1164,7 +1164,7 @@ int readheaders(int sock,
saddr, sizeof(saddr), NULL, 0,
NI_NUMERICHOST);
if (e)
- snprintf(saddr, sizeof(saddr), "(%-.*s)", sizeof(saddr) - 3, gai_strerror(e));
+ snprintf(saddr, sizeof(saddr), "(%-.*s)", (int)(sizeof(saddr) - 3), gai_strerror(e));
snprintf(buf, sizeof(buf),
"Received: from %s [%s]\r\n",
ctl->server.truename, saddr);