Starting on TcpClient, some formatting fixes
[cascardo/gnio.git] / gnio / gresolver.c
index ee9fd0b..5a74b7c 100644 (file)
@@ -56,7 +56,7 @@ G_LOCK_DEFINE (dnslock);
 
 #ifdef G_OS_WIN32
 /* This is copied straight from giowin32.c, but its static there... */
-/* Is there another way to get this functionality? */
+/* TODO: is there another way to get this functionality? or maybe make this public? */
 static char *
 winsock_error_message (int number)
 {
@@ -174,6 +174,7 @@ winsock_error_message (int number)
 }
 #endif
 
+#if !defined(HAVE_GETADDRINFO)
 static void
 g_set_error_from_last_error (GError **error)
 {
@@ -203,6 +204,7 @@ g_set_error_from_last_error (GError **error)
   g_set_error (error, G_IO_ERROR, code, hstrerror (err));
 #endif
 }
+#endif
 
 #if !defined(HAVE_GETADDRINFO)
 static GList *
@@ -404,7 +406,7 @@ g_resolver_init (GResolver *address)
 }
 
 typedef struct {
-  GList *list;
+  GList       *list;
   const gchar *host;
 } ResolveListData;