From e8ec450a19f4713410b68af41cdd1ca3a4c0092e Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 7 Aug 2016 13:56:33 +1000 Subject: [PATCH] Fix some warnings --- bbs.h | 1 + main.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) 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;