summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-10-17 16:14:00 +0000
committerbde <bde@FreeBSD.org>1998-10-17 16:14:00 +0000
commit6962466d086b995279407a1b03131f71be892a66 (patch)
tree57b13fa74f29551d3952e925d384a5ab969cdfcf /contrib
parentb88b21c0d0929483ebdf40420df37883ca4f7a3f (diff)
downloadFreeBSD-src-6962466d086b995279407a1b03131f71be892a66.zip
FreeBSD-src-6962466d086b995279407a1b03131f71be892a66.tar.gz
"Fixed" a printf format error. Use bogus casts to avoid using %p so that
the output doesn't change (unless the old format caused runtime errors).
Diffstat (limited to 'contrib')
-rw-r--r--contrib/sendmail/src/mci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/sendmail/src/mci.c b/contrib/sendmail/src/mci.c
index efb8cba..9e1e3b6 100644
--- a/contrib/sendmail/src/mci.c
+++ b/contrib/sendmail/src/mci.c
@@ -428,7 +428,9 @@ mci_dump(mci, logit)
sep = logit ? " " : "\n\t";
p = buf;
- snprintf(p, SPACELEFT(buf, p), "MCI@%x: ", mci);
+ snprintf(p, SPACELEFT(buf, p), "MCI@%lx: ",
+ sizeof(void *) == sizeof(u_long) ?
+ (u_long)(void *)mci : (u_long)(u_int)(void *)mci);
p += strlen(p);
if (mci == NULL)
{
OpenPOWER on IntegriCloud