diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2004-08-01 01:04:57 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2004-08-01 01:04:57 +0000 |
commit | 1fc446a819a244515d9461fa50d34ee191414d6f (patch) | |
tree | f6477ae85b00ee6d58b086b0d1d597dd9a403391 /contrib/sendmail/src/mci.c | |
parent | 238623a0204c90e8d61dbde7b3b499a5036f2e5d (diff) | |
download | FreeBSD-src-1fc446a819a244515d9461fa50d34ee191414d6f.zip FreeBSD-src-1fc446a819a244515d9461fa50d34ee191414d6f.tar.gz |
Import sendmail 8.13.1
Diffstat (limited to 'contrib/sendmail/src/mci.c')
-rw-r--r-- | contrib/sendmail/src/mci.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/contrib/sendmail/src/mci.c b/contrib/sendmail/src/mci.c index b8c0de2..dd8d7c3 100644 --- a/contrib/sendmail/src/mci.c +++ b/contrib/sendmail/src/mci.c @@ -13,7 +13,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> @@ -487,6 +487,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: @@ -529,7 +530,8 @@ static struct mcifbits MciFlags[] = }; void -mci_dump(mci, logit) +mci_dump(fp, mci, logit) + SM_FILE_T *fp; register MCI *mci; bool logit; { @@ -597,12 +599,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. ** @@ -611,7 +614,8 @@ printit: */ void -mci_dump_all(logit) +mci_dump_all(fp, logit) + SM_FILE_T *fp; bool logit; { register int i; @@ -620,7 +624,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. @@ -925,7 +929,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: |