minor fixes of warnings and misspellings

master
Alexey Khromov 5 months ago
parent ccf473515d
commit 0663d62be8

@ -161,7 +161,7 @@ static int daemon_sysentry_init(s_sysentry *sysent)
strcpy(msg, "freqs holded");
}
if( msg && *msg )
if( *msg )
log("QUEUE: add %s (%s)", ftn_addrstr(abuf, sysent->node.addr), msg);
else
log("QUEUE: add %s", ftn_addrstr(abuf, sysent->node.addr));
@ -194,7 +194,7 @@ static bool daemon_node_cancall_line(const s_node *node, const s_override *ovrd)
if( modem_isgood_phone(ovrd->sPhone) )
good_phone = TRUE;
}
else if( node && node->phone && *node->phone )
else if( node && *node->phone )
{
if( modem_isgood_phone(node->phone) )
good_phone = TRUE;

@ -39,8 +39,8 @@ static s_modemport *daemon_getfree_port(const char *lockdir)
static int daemon_call_branch(s_sysentry *syst, const char *lockdir, s_modemport *port)
{
int rc = BFERR_NOERROR;
char abuf[BF_MAXADDRSTR+1];
//int rc = BFERR_NOERROR;
//char abuf[BF_MAXADDRSTR+1];
/*
* First of all restore the default signal handlers

@ -67,8 +67,9 @@ int req_createsrif(char *sname, char *req, char *rsp)
fprintf(fp, "Sysop %s\n", cptr);
else
fprintf(fp, "Sysop SysOp\n");
if( aptr = session_1remote_address() )
aptr = session_1remote_address();
if( aptr )
fprintf(fp, "AKA %s\n", ftn_addrstr(abuf, *aptr));
else
return -1;

@ -307,7 +307,7 @@ int tty_putc(unsigned char ch, int timeout)
int tty_puts(const unsigned char *s, int timeout)
{
return tty_write_timeout(s, strlen(s), timeout);
return tty_write_timeout(s, strlen((char *)s), timeout);
}
int tty_getc(int timeout)

Loading…
Cancel
Save