=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/canohost.c,v retrieving revision 1.16.2.4 retrieving revision 1.16.2.5 diff -u -r1.16.2.4 -r1.16.2.5 --- src/usr.bin/ssh/canohost.c 2001/05/07 21:09:27 1.16.2.4 +++ src/usr.bin/ssh/canohost.c 2001/09/27 00:15:41 1.16.2.5 @@ -12,21 +12,21 @@ */ #include "includes.h" -RCSID("$OpenBSD: canohost.c,v 1.16.2.4 2001/05/07 21:09:27 jason Exp $"); +RCSID("$OpenBSD: canohost.c,v 1.16.2.5 2001/09/27 00:15:41 miod Exp $"); #include "packet.h" #include "xmalloc.h" #include "log.h" #include "canohost.h" -void check_ip_options(int socket, char *ipaddr); +static void check_ip_options(int, char *); /* * Return the canonical name of the host at the other end of the socket. The * caller should free the returned string with xfree. */ -char * +static char * get_remote_hostname(int socket, int reverse_mapping_check) { struct sockaddr_storage from; @@ -118,7 +118,7 @@ * exit here if we detect any IP options. */ /* IPv4 only */ -void +static void check_ip_options(int socket, char *ipaddr) { u_char options[200]; @@ -180,7 +180,7 @@ * Returns the remote IP-address of socket as a string. The returned * string must be freed. */ -char * +static char * get_socket_address(int socket, int remote, int flags) { struct sockaddr_storage addr; @@ -271,7 +271,7 @@ /* Returns the local/remote port for the socket. */ -int +static int get_sock_port(int sock, int local) { struct sockaddr_storage from; @@ -301,7 +301,7 @@ /* Returns remote/local port number for the current connection. */ -int +static int get_port(int local) { /*