Fixed compiler warnings while building the BBS. Thanks to Ken Bowley for the
patches.
This commit is contained in:
@@ -837,8 +837,8 @@ int each(faddr *addr, char flavor, int isflo, char *fname)
|
||||
if (*p == '\\')
|
||||
*p='/';
|
||||
for (p = buf; *p && isspace(*p); p++);
|
||||
if (*p == '~')
|
||||
continue;
|
||||
if (*p == '~')
|
||||
continue;
|
||||
if ((*p == '#') || (*p == '-') || (*p == '^') || (*p == '@'))
|
||||
p++;
|
||||
if (stat(p, &st) != 0) {
|
||||
|
@@ -84,7 +84,7 @@ void fill_portlist(pp_list **fdp, pp_list *new)
|
||||
pp_list *tmp, *ta;
|
||||
|
||||
tmp = (pp_list *)malloc(sizeof(pp_list));
|
||||
memset(tmp, 0, sizeof(tmp));
|
||||
memset(tmp, 0, sizeof(*tmp));
|
||||
tmp->next = NULL;
|
||||
strncpy(tmp->tty, new->tty, 6);
|
||||
tmp->mflags = new->mflags;
|
||||
|
@@ -309,7 +309,7 @@ void disk_getfs_r(char *buf)
|
||||
|
||||
if (ans != NULL)
|
||||
free(ans);
|
||||
ans = NULL;
|
||||
ans = NULL;
|
||||
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user