summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/src/mci.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/sendmail/src/mci.c')
-rw-r--r--contrib/sendmail/src/mci.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/contrib/sendmail/src/mci.c b/contrib/sendmail/src/mci.c
index a6b558e..8cdd12f 100644
--- a/contrib/sendmail/src/mci.c
+++ b/contrib/sendmail/src/mci.c
@@ -14,7 +14,7 @@
#include <sendmail.h>
-SM_RCSID("@(#)$Id: mci.c,v 8.205.2.4 2003/03/31 17:35:27 ca Exp $")
+SM_RCSID("@(#)$Id: mci.c,v 8.211 2003/03/31 17:35:50 ca Exp $")
#if NETINET || NETINET6
# include <arpa/inet.h>
@@ -488,6 +488,7 @@ mci_setstat(mci, xstat, dstat, rstat)
** MCI_DUMP -- dump the contents of an MCI structure.
**
** Parameters:
+** fp -- output file pointer
** mci -- the MCI structure to dump.
**
** Returns:
@@ -530,7 +531,8 @@ static struct mcifbits MciFlags[] =
};
void
-mci_dump(mci, logit)
+mci_dump(fp, mci, logit)
+ SM_FILE_T *fp;
register MCI *mci;
bool logit;
{
@@ -598,12 +600,13 @@ printit:
if (logit)
sm_syslog(LOG_DEBUG, CurEnv->e_id, "%.1000s", buf);
else
- (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, "%s\n", buf);
+ (void) sm_io_fprintf(fp, SM_TIME_DEFAULT, "%s\n", buf);
}
/*
** MCI_DUMP_ALL -- print the entire MCI cache
**
** Parameters:
+** fp -- output file pointer
** logit -- if set, log the result instead of printing
** to stdout.
**
@@ -612,7 +615,8 @@ printit:
*/
void
-mci_dump_all(logit)
+mci_dump_all(fp, logit)
+ SM_FILE_T *fp;
bool logit;
{
register int i;
@@ -621,7 +625,7 @@ mci_dump_all(logit)
return;
for (i = 0; i < MaxMciCache; i++)
- mci_dump(MciCache[i], logit);
+ mci_dump(fp, MciCache[i], logit);
}
/*
** MCI_LOCK_HOST -- Lock host while sending.
@@ -926,7 +930,7 @@ mci_read_persistent(fp, mci)
case '.': /* end of file */
if (tTd(56, 93))
- mci_dump(mci, false);
+ mci_dump(sm_debug_file(), mci, false);
return 0;
default:
OpenPOWER on IntegriCloud