Change seenby lists pointer type
This commit is contained in:
parent
df098737ee
commit
a78ed544a2
@ -19,6 +19,7 @@ v0.71.4 12-Aug-2005
|
|||||||
Reinstalled charset translation on the gateway. Changed the
|
Reinstalled charset translation on the gateway. Changed the
|
||||||
way how FTN kludges are translated to RFC headers.
|
way how FTN kludges are translated to RFC headers.
|
||||||
Dropped support for newsgroup distribution.
|
Dropped support for newsgroup distribution.
|
||||||
|
In tic processing changed pointer type for seenby lists.
|
||||||
|
|
||||||
mbsebbs:
|
mbsebbs:
|
||||||
Fixed headerlines for posting news.
|
Fixed headerlines for posting news.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* Purpose ...............: Process 1 .tic file
|
* Purpose ...............: Process 1 .tic file
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2004
|
* Copyright (C) 1997-2005
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -65,7 +65,7 @@ extern int check_dupe;
|
|||||||
* 1 - Some error
|
* 1 - Some error
|
||||||
* 2 - Orphaned tic
|
* 2 - Orphaned tic
|
||||||
*/
|
*/
|
||||||
int ProcessTic(fa_list *sbl)
|
int ProcessTic(fa_list **sbl)
|
||||||
{
|
{
|
||||||
time_t Now, Fdate;
|
time_t Now, Fdate;
|
||||||
int Age, First, Listed = FALSE, DownLinks = 0, MustRearc = FALSE;
|
int Age, First, Listed = FALSE, DownLinks = 0, MustRearc = FALSE;
|
||||||
@ -304,11 +304,11 @@ int ProcessTic(fa_list *sbl)
|
|||||||
DownLinks++;
|
DownLinks++;
|
||||||
p_from = fido2faddr(Link.aka);
|
p_from = fido2faddr(Link.aka);
|
||||||
if (TIC.TicIn.Hatch) {
|
if (TIC.TicIn.Hatch) {
|
||||||
fill_qualify(&qal, Link.aka, FALSE, in_list(p_from, &sbl, TRUE));
|
fill_qualify(&qal, Link.aka, FALSE, in_list(p_from, sbl, TRUE));
|
||||||
} else {
|
} else {
|
||||||
fill_qualify(&qal, Link.aka, ((TIC.Aka.zone == Link.aka.zone) &&
|
fill_qualify(&qal, Link.aka, ((TIC.Aka.zone == Link.aka.zone) &&
|
||||||
(TIC.Aka.net == Link.aka.net) && (TIC.Aka.node == Link.aka.node) &&
|
(TIC.Aka.net == Link.aka.net) && (TIC.Aka.node == Link.aka.node) &&
|
||||||
(TIC.Aka.point == Link.aka.point)), in_list(p_from, &sbl, TRUE));
|
(TIC.Aka.point == Link.aka.point)), in_list(p_from, sbl, TRUE));
|
||||||
}
|
}
|
||||||
tidy_faddr(p_from);
|
tidy_faddr(p_from);
|
||||||
}
|
}
|
||||||
@ -702,9 +702,9 @@ int ProcessTic(fa_list *sbl)
|
|||||||
for (i = 0; i < 40; i++) {
|
for (i = 0; i < 40; i++) {
|
||||||
if (CFG.akavalid[i] && (tic.Aka.zone == CFG.aka[i].zone)) {
|
if (CFG.akavalid[i] && (tic.Aka.zone == CFG.aka[i].zone)) {
|
||||||
p_from = fido2faddr(CFG.aka[i]);
|
p_from = fido2faddr(CFG.aka[i]);
|
||||||
if (! in_list(p_from, &sbl, TRUE)) {
|
if (! in_list(p_from, sbl, TRUE)) {
|
||||||
sprintf(sbe, "%u:%u/%u", CFG.aka[i].zone, CFG.aka[i].net, CFG.aka[i].node);
|
sprintf(sbe, "%u:%u/%u", CFG.aka[i].zone, CFG.aka[i].net, CFG.aka[i].node);
|
||||||
fill_list(&sbl, sbe, NULL);
|
fill_list(sbl, sbe, NULL);
|
||||||
}
|
}
|
||||||
tidy_faddr(p_from);
|
tidy_faddr(p_from);
|
||||||
}
|
}
|
||||||
@ -716,27 +716,25 @@ int ProcessTic(fa_list *sbl)
|
|||||||
for (tmpq = qal; tmpq; tmpq = tmpq->next) {
|
for (tmpq = qal; tmpq; tmpq = tmpq->next) {
|
||||||
if (tmpq->send) {
|
if (tmpq->send) {
|
||||||
sprintf(sbe, "%u:%u/%u", tmpq->aka.zone, tmpq->aka.net, tmpq->aka.node);
|
sprintf(sbe, "%u:%u/%u", tmpq->aka.zone, tmpq->aka.net, tmpq->aka.node);
|
||||||
fill_list(&sbl, sbe, NULL);
|
fill_list(sbl, sbe, NULL);
|
||||||
} else {
|
} else {
|
||||||
Syslog('f', "Skip SB %u:%u/%u", tmpq->aka.zone, tmpq->aka.net, tmpq->aka.node);
|
Syslog('f', "Skip SB %u:%u/%u", tmpq->aka.zone, tmpq->aka.net, tmpq->aka.node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uniq_list(&sbl);
|
uniq_list(sbl);
|
||||||
sort_list(&sbl);
|
sort_list(sbl);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Now forward this file to the qualified downlinks.
|
* Now forward this file to the qualified downlinks.
|
||||||
*/
|
*/
|
||||||
for (tmpq = qal; tmpq; tmpq = tmpq->next) {
|
for (tmpq = qal; tmpq; tmpq = tmpq->next) {
|
||||||
if (tmpq->send) {
|
if (tmpq->send) {
|
||||||
ForwardFile(tmpq->aka, sbl);
|
ForwardFile(tmpq->aka, *sbl);
|
||||||
tic_out++;
|
tic_out++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Syslog('f', "ProcessTic: post processing start");
|
|
||||||
|
|
||||||
Magic_ExecCommand();
|
Magic_ExecCommand();
|
||||||
Magic_CopyFile();
|
Magic_CopyFile();
|
||||||
Magic_UnpackFile();
|
Magic_UnpackFile();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef _PTIC_H
|
#ifndef _PTIC_H
|
||||||
#define _PTIC_H
|
#define _PTIC_H
|
||||||
|
|
||||||
int ProcessTic(fa_list *);
|
int ProcessTic(fa_list **);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* Purpose ...............: Process .tic files
|
* Purpose ...............: Process .tic files
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2004
|
* Copyright (C) 1997-2005
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -483,8 +483,10 @@ int LoadTic(char *inb, char *tfn)
|
|||||||
free(Buf);
|
free(Buf);
|
||||||
|
|
||||||
tic_in++;
|
tic_in++;
|
||||||
rc = ProcessTic(sbl);
|
rc = ProcessTic(&sbl);
|
||||||
|
Syslog('f', "back from ProcessTic");
|
||||||
tidy_falist(&sbl);
|
tidy_falist(&sbl);
|
||||||
|
Syslog('f', "tidy_falist(&sbl) done");
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user