ppack_cleanup should not be called outside of check_pack.c,
as it is passed as a cleanup callback to pthread. Declaring it
as static.
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@788
64e312b2-a51f-0410-8e61-
82d0ca0eb02a
#ifdef HAVE_PTHREAD
static pthread_mutex_t ck_mutex_lock = PTHREAD_MUTEX_INITIALIZER;
-void ppack_cleanup( void *mutex )
+static void ppack_cleanup( void *mutex )
{
pthread_mutex_unlock(mutex);
}
void ppack (int fdes, enum ck_msg_type type, CheckMsg *msg);
RcvMsg *punpack (int fdes);
-#ifdef HAVE_PTHREAD
-void ppack_cleanup( void *mutex );
-#endif
-
-
#endif /*CHECK_PACK_H */