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
This commit is contained in:
Gregory Neil Shapiro 2001-02-22 17:47:24 +00:00
parent cdee49f986
commit 12d67cf44c

View File

@ -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)
{