summaryrefslogtreecommitdiff
path: root/usr.bin/nc/socks.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-07 21:36:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-07 21:36:53 +0000
commit83036cf1c12eac42e9fcb4e6691ecc46dc8e654e (patch)
treec5d3ac18eb1b07a15bce95ace0ce7adb91c6f596 /usr.bin/nc/socks.c
parenta738290cbdde31b237de1a4fec2f5511fdf9ead7 (diff)
protos
Diffstat (limited to 'usr.bin/nc/socks.c')
-rw-r--r--usr.bin/nc/socks.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/nc/socks.c b/usr.bin/nc/socks.c
index 25779d2e992..a6b4fdd7e33 100644
--- a/usr.bin/nc/socks.c
+++ b/usr.bin/nc/socks.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: socks.c,v 1.7 2003/06/03 20:49:29 deraadt Exp $ */
+/* $OpenBSD: socks.c,v 1.8 2003/07/07 21:36:23 deraadt Exp $ */
/*
* Copyright (c) 1999 Niklas Hallqvist. All rights reserved.
@@ -46,9 +46,12 @@
#define SOCKS_MAXCMDSZ 10
int remote_connect(char *, char *, struct addrinfo);
+int socks_connect(char *host, char *port, struct addrinfo hints,
+ char *proxyhost, char *proxyport, struct addrinfo proxyhints,
+ int socksv);
static in_addr_t
-decode_addr (const char *s)
+decode_addr(const char *s)
{
struct hostent *hp = gethostbyname (s);
struct in_addr retval;
@@ -61,7 +64,7 @@ decode_addr (const char *s)
}
static in_port_t
-decode_port (const char *s)
+decode_port(const char *s)
{
struct servent *sp;
in_port_t port;
@@ -79,7 +82,7 @@ decode_port (const char *s)
}
int
-socks_connect (char *host, char *port, struct addrinfo hints,
+socks_connect(char *host, char *port, struct addrinfo hints,
char *proxyhost, char *proxyport, struct addrinfo proxyhints,
int socksv)
{