diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 1999-12-01 13:59:16 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 1999-12-01 13:59:16 +0000 |
commit | 32aebd23ed26ff522d1fec387f22a813f54a07b7 (patch) | |
tree | 228452b8ae54a8aa472ab14faa7a8ec69b4098be /usr.bin/ssh/sshconnect.c | |
parent | 50ca5e3de65fc38457e155a3e6534eee24fa31d1 (diff) |
ports are u_short
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r-- | usr.bin/ssh/sshconnect.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c index c3ef1365043..705706006ad 100644 --- a/usr.bin/ssh/sshconnect.c +++ b/usr.bin/ssh/sshconnect.c @@ -8,7 +8,7 @@ */ #include "includes.h" -RCSID("$Id: sshconnect.c,v 1.40 1999/11/24 19:53:53 markus Exp $"); +RCSID("$Id: sshconnect.c,v 1.41 1999/12/01 13:59:15 markus Exp $"); #include <ssl/bn.h> #include "xmalloc.h" @@ -32,7 +32,7 @@ unsigned char session_id[16]; * Connect to the given ssh server using a proxy command. */ int -ssh_proxy_connect(const char *host, int port, uid_t original_real_uid, +ssh_proxy_connect(const char *host, u_short port, uid_t original_real_uid, const char *proxy_command) { Buffer command; @@ -43,7 +43,7 @@ ssh_proxy_connect(const char *host, int port, uid_t original_real_uid, char portstring[100]; /* Convert the port number into a string. */ - snprintf(portstring, sizeof portstring, "%d", port); + snprintf(portstring, sizeof portstring, "%hu", port); /* Build the final command string in the buffer by making the appropriate substitutions to the given proxy command. */ @@ -171,7 +171,7 @@ ssh_create_socket(uid_t original_real_uid, int privileged) */ int ssh_connect(const char *host, struct sockaddr_in * hostaddr, - int port, int connection_attempts, + u_short port, int connection_attempts, int anonymous, uid_t original_real_uid, const char *proxy_command) { |