=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh.c,v retrieving revision 1.125 retrieving revision 1.126 diff -u -r1.125 -r1.126 --- src/usr.bin/ssh/ssh.c 2001/06/22 23:35:21 1.125 +++ src/usr.bin/ssh/ssh.c 2001/06/23 15:12:21 1.126 @@ -39,7 +39,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh.c,v 1.125 2001/06/22 23:35:21 markus Exp $"); +RCSID("$OpenBSD: ssh.c,v 1.126 2001/06/23 15:12:21 itojun Exp $"); #include #include @@ -140,7 +140,7 @@ /* Prints a help message to the user. This function never returns. */ -void +static void usage(void) { fprintf(stderr, "Usage: %s [options] host [command]\n", __progname); @@ -190,7 +190,7 @@ * Connects to the given host using rsh (or prints an error message and exits * if rsh is not available). This function never returns. */ -void +static void rsh_connect(char *host, char *user, Buffer * command) { char *args[10]; @@ -224,9 +224,9 @@ exit(1); } -int ssh_session(void); -int ssh_session2(void); -void load_public_identity_files(void); +static int ssh_session(void); +static int ssh_session2(void); +static void load_public_identity_files(void); /* * Main program for the ssh client. @@ -721,7 +721,7 @@ return exit_status; } -void +static void x11_get_proto(char *proto, int proto_len, char *data, int data_len) { char line[512]; @@ -760,7 +760,7 @@ } } -void +static void ssh_init_forwarding(void) { int success = 0; @@ -794,7 +794,7 @@ } } -void +static void check_agent_present(void) { if (options.forward_agent) { @@ -807,7 +807,7 @@ } } -int +static int ssh_session(void) { int type; @@ -945,7 +945,7 @@ options.escape_char : SSH_ESCAPECHAR_NONE, 0); } -void +static void client_subsystem_reply(int type, int plen, void *ctxt) { int id, len; @@ -960,7 +960,7 @@ len, buffer_ptr(&command), id); } -void +static void ssh_session2_callback(int id, void *arg) { int len; @@ -1036,7 +1036,7 @@ packet_set_interactive(interactive); } -int +static int ssh_session2_command(void) { Channel *c; @@ -1083,7 +1083,7 @@ return c->self; } -int +static int ssh_session2(void) { int id; @@ -1102,7 +1102,7 @@ options.escape_char : SSH_ESCAPECHAR_NONE, id); } -void +static void load_public_identity_files(void) { char *filename;