aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-04-06 00:10:24 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-04-06 00:10:24 +0200
commitb73b77380d9939e2b47f5ca7d723a86bde06d657 (patch)
tree78bbe702ae0cdd000d42513703a991d8c56b934e
parentf333f5cf33a6acdaeb39f7c707ec82012063770f (diff)
downloadfetchmail-b73b77380d9939e2b47f5ca7d723a86bde06d657.tar.gz
fetchmail-b73b77380d9939e2b47f5ca7d723a86bde06d657.tar.bz2
fetchmail-b73b77380d9939e2b47f5ca7d723a86bde06d657.zip
Cast strcspn result to int.
-rw-r--r--rfc822.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rfc822.c b/rfc822.c
index 6b1a2b3d..24e3560c 100644
--- a/rfc822.c
+++ b/rfc822.c
@@ -41,7 +41,7 @@ const char *program_name = "rfc822";
#define HEADER_END(p) ((p)[0] == '\n' && ((p)[1] != ' ' && (p)[1] != '\t'))
-#define BEFORE_EOL(s) (strcspn((s), "\r\n"))
+#define BEFORE_EOL(s) strcspn((s), "\r\n"))
char *reply_hack(
char *buf /* header to be hacked */,
@@ -76,7 +76,7 @@ char *reply_hack(
#ifndef MAIN
if (outlevel >= O_DEBUG)
report_build(stdout, GT_("About to rewrite %.*s...\n"),
- BEFORE_EOL(buf), buf);
+ (int)BEFORE_EOL(buf), buf);
/* make room to hack the address; buf must be malloced */
for (cp = buf; *cp; cp++)
@@ -213,7 +213,7 @@ char *reply_hack(
#ifndef MAIN
if (outlevel >= O_DEBUG)
report_complete(stdout, GT_("...rewritten version is %.*s.\n"),
- BEFORE_EOL(buf), buf);
+ (int)BEFORE_EOL(buf), buf);
#endif /* MAIN */
*length = strlen(buf);
return(buf);