Mercurial > hg > nnchat
changeset 414:ac4862a94cd1
Move some structures around.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 24 May 2012 06:45:23 +0300 |
parents | 14b685cdbd2c |
children | 8263cb88556a |
files | network.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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),