Fixed compiler warnings while building the BBS. Thanks to Ken Bowley for the

patches.
This commit is contained in:
Andrew Leary
2016-09-29 04:55:12 -04:00
parent f7401d92d0
commit b6e58185cd
42 changed files with 93 additions and 83 deletions

View File

@@ -406,7 +406,7 @@ int get_post(char *buf, int max)
int c, len;
len = 0;
memset(buf, 0, sizeof(buf));
memset(buf, 0, sizeof(*buf));
while (TRUE) {
c = tty_getc(180);
if (c <= 0) {

View File

@@ -263,7 +263,7 @@ int get_nntp(char *buf, int max)
int c, len;
len = 0;
memset(buf, 0, sizeof(buf));
memset(buf, 0, sizeof(*buf));
while (TRUE) {
c = tty_getc(180);
if (c <= 0) {

View File

@@ -652,10 +652,10 @@ int rfc2ftn(FILE *fp)
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,16,"%u/%u",msgs.Aka.net, msgs.Aka.node);
fill_path(&ptl,sbe);
}
if (msgs.Aka.point == 0) {
snprintf(sbe,16,"%u/%u",msgs.Aka.net, msgs.Aka.node);
fill_path(&ptl,sbe);
}
/*
* Only add PATH line if there is something