summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2001-02-22 17:47:24 +0000
committergshapiro <gshapiro@FreeBSD.org>2001-02-22 17:47:24 +0000
commitd634c33dd2975563e805c82c47ca3ae583538e8a (patch)
tree4fba1aaa56eefcde4940d93928da7883c573381b /contrib/sendmail
parente658f358fdbe8295147158c5d6385aea1a1fc6e7 (diff)
downloadFreeBSD-src-d634c33dd2975563e805c82c47ca3ae583538e8a.zip
FreeBSD-src-d634c33dd2975563e805c82c47ca3ae583538e8a.tar.gz
Return to the code as distributed by sendmail.org. This eliminates a
warning on Alphas. It is still not the perfect solution for machines which sizeof(u_long) != sizeof(void *) but it is as close as we are going to get for now and consistent with the rest of the code. 8.12 has solved this problem by providing a portable snprintf() which understands %p. PR: bin/14142
Diffstat (limited to 'contrib/sendmail')
-rw-r--r--contrib/sendmail/src/mci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/sendmail/src/mci.c b/contrib/sendmail/src/mci.c
index e3c43f2..92f3382 100644
--- a/contrib/sendmail/src/mci.c
+++ b/contrib/sendmail/src/mci.c
@@ -479,9 +479,7 @@ mci_dump(mci, logit)
sep = logit ? " " : "\n\t";
p = buf;
- snprintf(p, SPACELEFT(buf, p), "MCI@%lx: ",
- sizeof(void *) == sizeof(u_long) ?
- (u_long)(void *)mci : (u_long)(u_int)(void *)mci);
+ snprintf(p, SPACELEFT(buf, p), "MCI@%lx: ", (u_long) mci);
p += strlen(p);
if (mci == NULL)
{
OpenPOWER on IntegriCloud