# HG changeset patch # User Matti Hamalainen # Date 1337831123 -10800 # Node ID ac4862a94cd1043a3e421e0e879d942ffacc2319 # Parent 14b685cdbd2c4d13779fecdfe63c1a4d75c1a30c Move some structures around. diff -r 14b685cdbd2c -r ac4862a94cd1 network.c --- a/network.c Thu May 24 06:41:07 2012 +0300 +++ b/network.c Thu May 24 06:45:23 2012 +0300 @@ -5,6 +5,13 @@ */ #include "network.h" +static const char *nn_proxy_types[] = +{ + "none", + "SOCKS 4", + "SOCKS 4a", + NULL +}; #ifdef __WIN32 @@ -79,6 +86,7 @@ } } + struct hostent *nn_resolve_host(nn_conn_t *conn, const char *name) { struct hostent *res = gethostbyname(name); @@ -90,14 +98,6 @@ return res; } -static const char *nn_proxy_types[] = -{ - "none", - "SOCKS 4", - "SOCKS 4a", - NULL -}; - nn_conn_t * nn_conn_new( void (*errfunc)(nn_conn_t *conn, const char *fmt, va_list ap),