1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Fixed printf format errors.

This commit is contained in:
Bruce Evans 1998-10-17 16:04:28 +00:00
parent 996997fdef
commit 1ec86adf67
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40497
4 changed files with 6 additions and 6 deletions

View File

@ -4300,7 +4300,7 @@ load_if_names()
/* save IP address in text from */
(void) snprintf(ip_addr, sizeof ip_addr, "[%.*s]",
sizeof ip_addr - 3,
(int)sizeof ip_addr - 3,
inet_ntoa(ia));
if (!wordinclass(ip_addr, 'w'))
{

View File

@ -216,7 +216,7 @@ usrerr(fmt, va_alist)
char buf[MAXLINE];
snprintf(buf, sizeof buf, "Postmaster warning: %.*s",
sizeof buf - 22, MsgBuf + 4);
(int)sizeof buf - 22, MsgBuf + 4);
CurEnv->e_message = newstr(buf);
}
else

View File

@ -1365,7 +1365,7 @@ put_vanilla_header(h, v, mci)
*obp++ = ' ';
}
snprintf(obp, SPACELEFT(obuf, obp), "%.*s",
sizeof obuf - (obp - obuf) - 1, v);
(int)(sizeof obuf - (obp - obuf) - 1), v);
putxline(obuf, strlen(obuf), mci, putflags);
}
/*

View File

@ -551,7 +551,7 @@ returntosender(msg, returnq, flags, e)
addheader("MIME-Version", "1.0", &ee->e_header);
(void) snprintf(buf, sizeof buf, "%s.%ld/%.100s",
ee->e_id, curtime(), MyHostName);
ee->e_id, (long)curtime(), MyHostName);
ee->e_msgboundary = newstr(buf);
(void) snprintf(buf, sizeof buf,
#if DSN
@ -588,14 +588,14 @@ returntosender(msg, returnq, flags, e)
else if (bitset(RTSF_PM_BOUNCE, flags))
{
snprintf(buf, sizeof buf, "Postmaster notify: %.*s",
sizeof buf - 20, msg);
(int)sizeof buf - 20, msg);
addheader("Subject", buf, &ee->e_header);
p = "postmaster-notification";
}
else
{
snprintf(buf, sizeof buf, "Returned mail: %.*s",
sizeof buf - 20, msg);
(int)sizeof buf - 20, msg);
addheader("Subject", buf, &ee->e_header);
p = "failure";
}