Fix some warnings

This commit is contained in:
Andrew Pamment 2016-08-07 13:56:33 +10:00
parent f09888b5a6
commit e8ec450a19
2 changed files with 2 additions and 3 deletions

1
bbs.h
View File

@ -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);

4
main.c
View File

@ -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;