diff options
Diffstat (limited to 'canohost.c')
-rw-r--r-- | canohost.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/canohost.c b/canohost.c index a11d66392..1b5790929 100644 --- a/canohost.c +++ b/canohost.c | |||
@@ -1,20 +1,20 @@ | |||
1 | /* | 1 | /* |
2 | * | 2 | * |
3 | * canohost.c | 3 | * canohost.c |
4 | * | 4 | * |
5 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 5 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
6 | * | 6 | * |
7 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 7 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
8 | * All rights reserved | 8 | * All rights reserved |
9 | * | 9 | * |
10 | * Created: Sun Jul 2 17:52:22 1995 ylo | 10 | * Created: Sun Jul 2 17:52:22 1995 ylo |
11 | * | 11 | * |
12 | * Functions for returning the canonical host name of the remote site. | 12 | * Functions for returning the canonical host name of the remote site. |
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include "includes.h" | 16 | #include "includes.h" |
17 | RCSID("$Id: canohost.c,v 1.8 2000/03/11 09:45:41 damien Exp $"); | 17 | RCSID("$Id: canohost.c,v 1.9 2000/04/16 01:18:40 damien Exp $"); |
18 | 18 | ||
19 | #include "packet.h" | 19 | #include "packet.h" |
20 | #include "xmalloc.h" | 20 | #include "xmalloc.h" |
@@ -265,7 +265,7 @@ get_sock_port(int sock, int local) | |||
265 | 265 | ||
266 | /* Returns remote/local port number for the current connection. */ | 266 | /* Returns remote/local port number for the current connection. */ |
267 | 267 | ||
268 | int | 268 | int |
269 | get_port(int local) | 269 | get_port(int local) |
270 | { | 270 | { |
271 | /* | 271 | /* |
@@ -279,13 +279,13 @@ get_port(int local) | |||
279 | return get_sock_port(packet_get_connection_in(), local); | 279 | return get_sock_port(packet_get_connection_in(), local); |
280 | } | 280 | } |
281 | 281 | ||
282 | int | 282 | int |
283 | get_peer_port(int sock) | 283 | get_peer_port(int sock) |
284 | { | 284 | { |
285 | return get_sock_port(sock, 0); | 285 | return get_sock_port(sock, 0); |
286 | } | 286 | } |
287 | 287 | ||
288 | int | 288 | int |
289 | get_remote_port() | 289 | get_remote_port() |
290 | { | 290 | { |
291 | return get_port(0); | 291 | return get_port(0); |