diff --git a/bbs.h b/bbs.h index 314ed8f..9e94bce 100644 --- a/bbs.h +++ b/bbs.h @@ -145,6 +145,7 @@ struct user_record { extern void automessage_write(struct user_record *user); extern void automessage_display(); extern void dolog(char *fmt, ...); +extern void runbbs_ssh(char *ipaddress); extern void runbbs(int sock, char *ipaddress); extern struct fido_addr *parse_fido_addr(const char *str); extern void s_putchar(char c); diff --git a/main.c b/main.c index 13ac416..42962e1 100644 --- a/main.c +++ b/main.c @@ -466,7 +466,7 @@ void serverssh(int port) { ssh_bind p_ssh_bind; int err; int pid; - int shell; + int shell = 0; int fd; ssh_channel chan = 0; int bbs_pid; @@ -696,8 +696,6 @@ void server(int port) { } int main(int argc, char **argv) { - int port; - int i; int main_pid; FILE *fptr;