Fix some warnings
This commit is contained in:
parent
f09888b5a6
commit
e8ec450a19
1
bbs.h
1
bbs.h
@ -145,6 +145,7 @@ struct user_record {
|
|||||||
extern void automessage_write(struct user_record *user);
|
extern void automessage_write(struct user_record *user);
|
||||||
extern void automessage_display();
|
extern void automessage_display();
|
||||||
extern void dolog(char *fmt, ...);
|
extern void dolog(char *fmt, ...);
|
||||||
|
extern void runbbs_ssh(char *ipaddress);
|
||||||
extern void runbbs(int sock, char *ipaddress);
|
extern void runbbs(int sock, char *ipaddress);
|
||||||
extern struct fido_addr *parse_fido_addr(const char *str);
|
extern struct fido_addr *parse_fido_addr(const char *str);
|
||||||
extern void s_putchar(char c);
|
extern void s_putchar(char c);
|
||||||
|
4
main.c
4
main.c
@ -466,7 +466,7 @@ void serverssh(int port) {
|
|||||||
ssh_bind p_ssh_bind;
|
ssh_bind p_ssh_bind;
|
||||||
int err;
|
int err;
|
||||||
int pid;
|
int pid;
|
||||||
int shell;
|
int shell = 0;
|
||||||
int fd;
|
int fd;
|
||||||
ssh_channel chan = 0;
|
ssh_channel chan = 0;
|
||||||
int bbs_pid;
|
int bbs_pid;
|
||||||
@ -696,8 +696,6 @@ void server(int port) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
int port;
|
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
int main_pid;
|
int main_pid;
|
||||||
FILE *fptr;
|
FILE *fptr;
|
||||||
|
Reference in New Issue
Block a user