cURL / Mailing Lists / curl-library / Single Mail

curl-library

Minor patch - Changing to internal linkage 4 functions

From: Yang Tse <yangsita_at_gmail.com>
Date: Thu, 24 Nov 2005 12:55:09 +0100

Daniel,

Functions destroy_thread_sync_data, init_thread_sync_data,
acquire_thread_sync and release_thread_sync are not used from outside
of hostthre.c. Using a static declaration could lead some compilers to
inline them, and might also remove mingw warnings.

diff -urp c:\f\curl-old/curl/lib/hostthre.c c:\f\curl-new/curl/lib/hostthre.c
--- c:\f\curl-old/curl/lib/hostthre.c 2005-11-08 15:45:58.000000000 +0100
+++ c:\f\curl-new/curl/lib/hostthre.c 2005-11-24 12:27:01.608092800 +0100
@@ -181,6 +181,7 @@ struct thread_sync_data {
 };

 /* Destroy resolver thread synchronization data */
+static
 void destroy_thread_sync_data(struct thread_sync_data * tsd)
 {
   if (tsd->hostname) {
@@ -202,6 +203,7 @@ void destroy_thread_sync_data(struct thr
 }

 /* Initialize resolver thread synchronization data */
+static
 BOOL init_thread_sync_data(struct thread_data * td,
                            char * hostname,
                            struct thread_sync_data * tsd)
@@ -243,6 +245,7 @@ BOOL init_thread_sync_data(struct thread
 }

 /* acquire resolver thread synchronization */
+static
 BOOL acquire_thread_sync(struct thread_sync_data * tsd)
 {
   /* is the thread initiator still waiting for us ? */
@@ -269,6 +272,7 @@ BOOL acquire_thread_sync(struct thread_s
 }

 /* release resolver thread synchronization */
+static
 void release_thread_sync(struct thread_sync_data * tsd)
 {
   ReleaseMutex(tsd->mutex_terminate);

Regards,
Yang
Received on 2005-11-24