aboutsummaryrefslogtreecommitdiffstats
path: root/rfc822.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfc822.c')
-rw-r--r--rfc822.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rfc822.c b/rfc822.c
index cd6fb17a..25d193b7 100644
--- a/rfc822.c
+++ b/rfc822.c
@@ -95,7 +95,7 @@ unsigned char *reply_hack(
#ifdef MAIN
if (verbose)
{
- printf("state %d: %s", state, buf);
+ printf("state %d: %s", state, (char *)buf);
printf("%*s^\n", from - buf + 10, " ");
}
#endif /* MAIN */
@@ -252,7 +252,7 @@ unsigned char *nxtaddr(const unsigned char *hdr /* header to be parsed, NUL to c
#ifdef MAIN
if (verbose)
{
- printf("state %d: %s", state, orighdr);
+ printf("state %d: %s", state, (char *)orighdr);
printf("%*s^\n", hp - orighdr + 10, " ");
}
#endif /* MAIN */
@@ -398,12 +398,12 @@ static void parsebuf(unsigned char *longbuf, int reply)
if (reply)
{
reply_hack(longbuf, "HOSTNAME.NET", &dummy);
- printf("Rewritten buffer: %s", longbuf);
+ printf("Rewritten buffer: %s", (char *)longbuf);
}
else
if ((cp = nxtaddr(longbuf)) != (unsigned char *)NULL)
do {
- printf("\t-> \"%s\"\n", cp);
+ printf("\t-> \"%s\"\n", (char *)cp);
} while
((cp = nxtaddr((unsigned char *)NULL)) != (unsigned char *)NULL);
}