Browse Source

made cryptothread functions static

cecylia 6 years ago
parent
commit
559950ca73
1 changed files with 4 additions and 4 deletions
  1. 4 4
      relay_station/cryptothread.c

+ 4 - 4
relay_station/cryptothread.c

@@ -37,8 +37,8 @@
 static pthread_mutex_t *crypto_locks;
 static long *lock_count;
 
-void pthreads_thread_id(CRYPTO_THREADID *tid);
-void pthreads_locking_callback(int mode, int type, const char *file, int line);
+static void pthreads_thread_id(CRYPTO_THREADID *tid);
+static void pthreads_locking_callback(int mode, int type, const char *file, int line);
 
 void init_crypto_locks(void){
 
@@ -70,7 +70,7 @@ void crypto_locks_cleanup(void){
 }
 
 /** If the mode is CRYPTO_LOCK, the lock indicated by type will be acquired, otherwise it will be released */
-void pthreads_locking_callback(int mode, int type, const char *file, int line){
+static void pthreads_locking_callback(int mode, int type, const char *file, int line){
 
     if(mode & CRYPTO_LOCK){
         pthread_mutex_lock(&(crypto_locks[type]));
@@ -80,7 +80,7 @@ void pthreads_locking_callback(int mode, int type, const char *file, int line){
     }
 }
 
-void pthreads_thread_id(CRYPTO_THREADID *tid){
+static void pthreads_thread_id(CRYPTO_THREADID *tid){
     CRYPTO_THREADID_set_numeric(tid, (unsigned long)pthread_self());
 }