Fixed compiler warnings while building the BBS. Thanks to Ken Bowley for the
patches.
This commit is contained in:
@@ -175,7 +175,7 @@ char *mkemsidat(int caller)
|
||||
p=xstrcat(p,(char *)"ZAP,");
|
||||
if (emsi_local_protos & PROT_ZMO)
|
||||
p=xstrcat(p,(char *)"ZMO,");
|
||||
if (emsi_local_protos & PROT_DZA);
|
||||
if (emsi_local_protos & PROT_DZA)
|
||||
p=xstrcat(p,(char *)"DZA,");
|
||||
if (emsi_local_protos & PROT_KER)
|
||||
p=xstrcat(p,(char *)"KER,");
|
||||
|
@@ -491,9 +491,9 @@ file_list *create_filelist(fa_list *al, char *fl, int create)
|
||||
}
|
||||
|
||||
for (tmpf = st; tmpf; tmpf = tmpf->next)
|
||||
Syslog('o',"flist: \"%s\" -> \"%s\" dsp:%d flofp:%u floff:%u",
|
||||
Syslog('o',"flist: \"%s\" -> \"%s\" dsp:%d flofp:%p floff:%p",
|
||||
MBSE_SS(tmpf->local), MBSE_SS(tmpf->remote), tmpf->disposition,
|
||||
(unsigned int)tmpf->flofp, (unsigned int)tmpf->floff);
|
||||
tmpf->flofp, tmpf->floff);
|
||||
|
||||
return st;
|
||||
}
|
||||
|
@@ -241,7 +241,7 @@ SM_STATE(send_mail)
|
||||
tmpfl = tosend;
|
||||
tosend = request;
|
||||
for (; request->next; request = request->next);
|
||||
request->next = tmpfl;
|
||||
request->next = tmpfl;
|
||||
|
||||
request = NULL;
|
||||
}
|
||||
|
@@ -1807,7 +1807,7 @@ int hydra(int role)
|
||||
tmpfl = tosend;
|
||||
tosend = request;
|
||||
for (; request->next; request = request->next);
|
||||
request->next = tmpfl;
|
||||
request->next = tmpfl;
|
||||
|
||||
request = NULL;
|
||||
}
|
||||
@@ -1823,7 +1823,7 @@ int hydra(int role)
|
||||
|
||||
if (emsi_remote_lcodes & LCODE_RH1) {
|
||||
for (tmpfl = tosend; tmpfl->next; tmpfl = tmpfl->next);
|
||||
tmpfl->next = respond;
|
||||
tmpfl->next = respond;
|
||||
|
||||
rc = hydra_batch(role, tosend);
|
||||
tmpfl->next = NULL; /* split filelist into tosend and respond again */
|
||||
|
@@ -312,8 +312,8 @@ int main(int argc, char *argv[])
|
||||
if (execl(temp, "mblogin", (char *)NULL) == -1)
|
||||
perror("FATAL: Error loading BBS!");
|
||||
|
||||
InitClient(pw->pw_name, (char *)"mbcico", CFG.location, CFG.logfile,
|
||||
CFG.cico_loglevel, CFG.error_log, CFG.mgrlog, CFG.debuglog);
|
||||
InitClient(pw->pw_name, (char *)"mbcico", CFG.location, CFG.logfile,
|
||||
CFG.cico_loglevel, CFG.error_log, CFG.mgrlog, CFG.debuglog);
|
||||
/*
|
||||
* If this happens, nothing is logged!
|
||||
*/
|
||||
|
@@ -388,8 +388,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 == '~'))
|
||||
p++;
|
||||
if (stat(p, &st) != 0) {
|
||||
|
@@ -73,7 +73,7 @@ int rxtcp(void)
|
||||
if ((rc=tcprcvfiles()) == 0) {
|
||||
if ((emsi_local_opts & OPT_NRQ) == 0) {
|
||||
for (tmpfl = &tosend; *tmpfl; tmpfl = &((*tmpfl)->next));
|
||||
*tmpfl = respond_wazoo();
|
||||
*tmpfl = respond_wazoo();
|
||||
}
|
||||
|
||||
if ((tosend != NULL) || ((emsi_remote_lcodes & LCODE_NPU) == 0))
|
||||
|
Reference in New Issue
Block a user