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