Fix warning about missing initializers.
authorGisle Vanem <gvanem@broadpark.no>
Tue, 6 Sep 2005 15:58:09 +0000 (15:58 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Tue, 6 Sep 2005 15:58:09 +0000 (15:58 +0000)
lib/hostthre.c

index ebd9e7d..6b35888 100644 (file)
@@ -289,7 +289,7 @@ static unsigned __stdcall gethostbyname_thread (void *arg)
    * This allows us to use it even after the container gets destroyed
    * due to a resolver timeout.
    */
-  struct thread_sync_data tsd = {0};
+  struct thread_sync_data tsd = { 0,0,0,NULL };
   if (!init_thread_sync_data(td, conn->async.hostname, &tsd)) {
     /* thread synchronization data initialization failed */
     return -1;
@@ -356,7 +356,7 @@ static unsigned __stdcall getaddrinfo_thread (void *arg)
    * This allows us to use it even after the container gets destroyed
    * due to a resolver timeout.
    */
-  struct thread_sync_data tsd = {0};
+  struct thread_sync_data tsd = { 0,0,0,NULL };
   if (!init_thread_sync_data(td, conn->async.hostname, &tsd)) {
     /* thread synchronization data initialization failed */
     return -1;