mbcico code cleanup
This commit is contained in:
parent
d110043489
commit
a62a161550
@ -4138,6 +4138,9 @@ v0.33.18 27-Jul-2001
|
||||
mbcico:
|
||||
Renamed sendfile function in zmsend.c to sendzfile to prevent a
|
||||
conflict with an excisting library call on FreeBSD.
|
||||
Removed some debug logmessages.
|
||||
The filerquest response message doesn't use the tmpnam function
|
||||
anymore, this was the last one of the unsafe tmpnam calls.
|
||||
|
||||
mball:
|
||||
Removed some compiler warnings on some systems.
|
||||
|
@ -2,7 +2,7 @@
|
||||
*
|
||||
* File ..................: mbcico/answer.c
|
||||
* Purpose ...............: Fidonet mailer
|
||||
* Last modification date : 08-Jun-2001
|
||||
* Last modification date : 04-Oct-2001
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2001
|
||||
@ -146,7 +146,6 @@ int answer(char *stype)
|
||||
if ((fp = fopen(p, "a")) == NULL)
|
||||
WriteError("$Can't open %s", p);
|
||||
else {
|
||||
Syslog('s', "answer() write history");
|
||||
fwrite(&history, sizeof(history), 1, fp);
|
||||
fclose(fp);
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
*
|
||||
* File ....................: mbcico/binkp.c
|
||||
* Purpose .................: Fidonet binkd protocol
|
||||
* Last modification date ..: 07-Aug-2001
|
||||
* Last modification date ..: 04-Oct-2001
|
||||
* Binkp protocol copyright : Dima Maloff.
|
||||
*
|
||||
*****************************************************************************
|
||||
@ -1043,8 +1043,8 @@ int binkp_batch(file_list *to_send)
|
||||
TxState = TxDone;
|
||||
binkp_send_control(MM_EOB, "");
|
||||
Syslog('+', "Binkp: sending EOB");
|
||||
} else {
|
||||
Syslog('b', "tmp != NULL");
|
||||
// } else {
|
||||
// Syslog('b', "tmp != NULL");
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
*
|
||||
* File ..................: mbcico/respfreq.c
|
||||
* Purpose ...............: Fidonet mailer
|
||||
* Last modification date : 08-Aug-2001
|
||||
* Last modification date : 04-Oct-2001
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2001
|
||||
@ -568,7 +568,7 @@ file_list *respmagic(char *cmd) /* must free(cmd) before exit */
|
||||
static void attach_report(file_list **fl)
|
||||
{
|
||||
FILE *fp;
|
||||
char tmpfn[L_tmpnam];
|
||||
char tmpfn[PATH_MAX];
|
||||
char remname[14];
|
||||
long zeroes = 0L;
|
||||
ftnmsg fmsg;
|
||||
@ -592,8 +592,7 @@ static void attach_report(file_list **fl)
|
||||
|
||||
add_report((char *)"\r--- mbcico v%s\r", VERSION);
|
||||
|
||||
(void)tmpnam(tmpfn);
|
||||
|
||||
sprintf(tmpfn, "%s/tmp/%08lX.rpl", getenv((char *)"MBSE_ROOT"), (unsigned long)sequencer());
|
||||
if ((fp = fopen(tmpfn,"w"))) {
|
||||
fmsg.flags = M_PVT|M_KILLSENT;
|
||||
fmsg.from = bestaka_s(remote->addr);
|
||||
|
Reference in New Issue
Block a user