Fixed compiler warnings while building the BBS. Thanks to Ken Bowley for the
patches.
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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) {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user