Fixed compiler warnings while building the BBS. Thanks to Ken Bowley for the
patches.
This commit is contained in:
@@ -305,7 +305,7 @@ void Send(int newsmode, char *outstr)
|
||||
int ftn2rfc(faddr *f, faddr *t, char *subj, char *origline, time_t mdate, int flags, FILE *pkt)
|
||||
{
|
||||
int rrq, result = 1, waskludge = FALSE, badkludge;
|
||||
int bNeedToGetAddressFromMsgid = (int)NULL, newsmode = 0, lines, pass, count, first;
|
||||
int bNeedToGetAddressFromMsgid = 0, newsmode = 0, lines, pass, count, first;
|
||||
char *newsgroup = NULL, *charset = NULL;
|
||||
char *temp, *p, *q, *r, *l, *b, *To = NULL, buf[4096], c, MailFrom[128], MailTo[128];
|
||||
time_t now;
|
||||
|
@@ -202,7 +202,7 @@ void editor_configs(void)
|
||||
for (i = 1; i < 40; i++)
|
||||
if (CFG.akavalid[i])
|
||||
fprintf(fp, "AKA %s\n", aka2str(CFG.aka[i]));
|
||||
fprintf(fp, "\n");
|
||||
fprintf(fp, "\n");
|
||||
|
||||
gold_akamatch(fp);
|
||||
fprintf(fp, "; JAM MessageBase Setup\n;\n");
|
||||
|
@@ -444,8 +444,8 @@ int compile(char *nlname, unsigned short zo, unsigned short ne, unsigned short n
|
||||
*/
|
||||
if ((*(buf+strlen(buf) -1) != '\n') && (*(buf + strlen(buf) -1) != '\012')) {
|
||||
while (fgets(buf, sizeof(buf) -1, nl) && (*(buf + strlen(buf) -1) != '\n')) /*void*/;
|
||||
if (strlen(buf) > 1) /* Suppress EOF character */
|
||||
Syslog('-', "Nodelist: too long line junked (%d)", lineno);
|
||||
if (strlen(buf) > 1) /* Suppress EOF character */
|
||||
Syslog('-', "Nodelist: too long line junked (%d)", lineno);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@@ -69,7 +69,7 @@ void MacroRead(FILE *fi, FILE *fp)
|
||||
/*
|
||||
* Empty lines are just written
|
||||
*/
|
||||
fprintf(fp, "\r");
|
||||
fprintf(fp, "\n");
|
||||
} else {
|
||||
strncpy(temp, ParseMacro(line,&res), 254);
|
||||
if (res)
|
||||
@@ -78,7 +78,7 @@ void MacroRead(FILE *fi, FILE *fp)
|
||||
* Only output if something was evaluated
|
||||
*/
|
||||
if (strlen(temp))
|
||||
fprintf(fp, "%s\r", temp);
|
||||
fprintf(fp, "%s\n", temp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -373,8 +373,8 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
||||
fprintf(ofp, "\001TOPT %d\n", fmsg->to->point);
|
||||
if (fmsg->from->point != 0)
|
||||
fprintf(ofp, "\001FMPT %d\n", fmsg->from->point);
|
||||
fprintf(ofp, "\001INTL %d:%d/%d %d:%d/%d\n", fmsg->to->zone, fmsg->to->net, fmsg->to->node,
|
||||
fmsg->from->zone, fmsg->from->net, fmsg->from->node);
|
||||
fprintf(ofp, "\001INTL %d:%d/%d %d:%d/%d\n", fmsg->to->zone, fmsg->to->net, fmsg->to->node,
|
||||
fmsg->from->zone, fmsg->from->net, fmsg->from->node);
|
||||
}
|
||||
|
||||
if ((fmsg->msgid_a == NULL) || (fmsg->msgid_n == 0)) {
|
||||
@@ -673,10 +673,10 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
||||
for (tmp = msg; tmp; tmp = tmp->next)
|
||||
if (!strcasecmp(tmp->key,"X-FTN-PATH"))
|
||||
fill_path(&ptl,tmp->val);
|
||||
if (msgs.Aka.point == 0) {
|
||||
snprintf(sbe,128,"%u/%u",msgs.Aka.net, msgs.Aka.node);
|
||||
fill_path(&ptl,sbe);
|
||||
}
|
||||
if (msgs.Aka.point == 0) {
|
||||
snprintf(sbe,128,"%u/%u",msgs.Aka.net, msgs.Aka.node);
|
||||
fill_path(&ptl,sbe);
|
||||
}
|
||||
|
||||
/*
|
||||
* Only add PATH line if there is something
|
||||
|
@@ -463,9 +463,9 @@ int getmessage(FILE *pkt, faddr *p_from, faddr *p_to)
|
||||
} else
|
||||
if (*(l=p+strlen(p)-1) == '\n')
|
||||
*l='\0';
|
||||
for (l=p+strlen(p)-1;*l == ' ';l--)
|
||||
*l='\0';
|
||||
orig = xstrcpy(p);
|
||||
for (l=p+strlen(p)-1;*l == ' ';l--)
|
||||
*l='\0';
|
||||
orig = xstrcpy(p);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -89,7 +89,7 @@ void ParseMask(char *s, fidoaddr *addr)
|
||||
else
|
||||
if (strcmp(str, "All"))
|
||||
good = FALSE;
|
||||
str = p;
|
||||
str = p;
|
||||
}
|
||||
|
||||
if ((p=strchr(str, '.'))) {
|
||||
@@ -101,7 +101,7 @@ void ParseMask(char *s, fidoaddr *addr)
|
||||
addr->node = 65535;
|
||||
else
|
||||
good = FALSE;
|
||||
str = p;
|
||||
str = p;
|
||||
} else {
|
||||
if (strspn(str, "0123456789") == strlen(str))
|
||||
addr->node = atoi(str);
|
||||
@@ -110,7 +110,7 @@ void ParseMask(char *s, fidoaddr *addr)
|
||||
addr->node = 65535;
|
||||
else
|
||||
good = FALSE;
|
||||
str = NULL;
|
||||
str = NULL;
|
||||
}
|
||||
|
||||
if (str) {
|
||||
|
Reference in New Issue
Block a user