Browse Source

Thread reportin and out can be static non inline.

ckolivas 12 years ago
parent
commit
b12badc9f2
2 changed files with 2 additions and 3 deletions
  1. 2 2
      cgminer.c
  2. 0 1
      miner.h

+ 2 - 2
cgminer.c

@@ -4665,7 +4665,7 @@ static void *api_thread(void *userdata)
 	return NULL;
 }
 
-void thread_reportin(struct thr_info *thr)
+static void thread_reportin(struct thr_info *thr)
 {
 	thr->getwork = false;
 	cgtime(&thr->last);
@@ -4675,7 +4675,7 @@ void thread_reportin(struct thr_info *thr)
 
 /* Tell the watchdog thread this thread is waiting on get work and should not
  * be restarted */
-static inline void thread_reportout(struct thr_info *thr)
+static void thread_reportout(struct thr_info *thr)
 {
 	thr->getwork = true;
 	cgtime(&thr->last);

+ 0 - 1
miner.h

@@ -942,7 +942,6 @@ extern pthread_rwlock_t devices_lock;
 extern pthread_mutex_t restart_lock;
 extern pthread_cond_t restart_cond;
 
-extern void thread_reportin(struct thr_info *thr);
 extern void clear_stratum_shares(struct pool *pool);
 extern void set_target(unsigned char *dest_target, double diff);
 extern int restart_wait(struct thr_info *thr, unsigned int mstime);