diff options
author | bde <bde@FreeBSD.org> | 1998-10-17 16:04:28 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-10-17 16:04:28 +0000 |
commit | b88b21c0d0929483ebdf40420df37883ca4f7a3f (patch) | |
tree | e557c47a3cdfa39c0c29724643d604ad5806da85 /contrib/sendmail/src | |
parent | ccbd0428fd211712e8ac0f38c178720a3ff44ab8 (diff) | |
download | FreeBSD-src-b88b21c0d0929483ebdf40420df37883ca4f7a3f.zip FreeBSD-src-b88b21c0d0929483ebdf40420df37883ca4f7a3f.tar.gz |
Fixed printf format errors.
Diffstat (limited to 'contrib/sendmail/src')
-rw-r--r-- | contrib/sendmail/src/conf.c | 2 | ||||
-rw-r--r-- | contrib/sendmail/src/err.c | 2 | ||||
-rw-r--r-- | contrib/sendmail/src/headers.c | 2 | ||||
-rw-r--r-- | contrib/sendmail/src/savemail.c | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/contrib/sendmail/src/conf.c b/contrib/sendmail/src/conf.c index 838cd17..538ade4 100644 --- a/contrib/sendmail/src/conf.c +++ b/contrib/sendmail/src/conf.c @@ -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')) { diff --git a/contrib/sendmail/src/err.c b/contrib/sendmail/src/err.c index 0661395..a07d62d 100644 --- a/contrib/sendmail/src/err.c +++ b/contrib/sendmail/src/err.c @@ -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 diff --git a/contrib/sendmail/src/headers.c b/contrib/sendmail/src/headers.c index a04f59e..91a4261 100644 --- a/contrib/sendmail/src/headers.c +++ b/contrib/sendmail/src/headers.c @@ -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); } /* diff --git a/contrib/sendmail/src/savemail.c b/contrib/sendmail/src/savemail.c index 4fbfd67..c7ae3d9 100644 --- a/contrib/sendmail/src/savemail.c +++ b/contrib/sendmail/src/savemail.c @@ -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"; } |