From: Bart Van Assche Date: Sat, 28 Jun 2008 16:22:24 +0000 (+0000) Subject: Changed function not_a_mutex() from static to extern. X-Git-Tag: svn/VALGRIND_3_4_0~414 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8971abd42303b725d81bf5e1526c72d28bafd86;p=thirdparty%2Fvalgrind.git Changed function not_a_mutex() from static to extern. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8300 --- diff --git a/exp-drd/drd_mutex.c b/exp-drd/drd_mutex.c index 823da1cd5b..2176ba1ab3 100644 --- a/exp-drd/drd_mutex.c +++ b/exp-drd/drd_mutex.c @@ -111,7 +111,7 @@ static void mutex_cleanup(struct mutex_info* p) } /** Let Valgrind report that there is no mutex object at address 'mutex'. */ -static void not_a_mutex(const Addr mutex) +void not_a_mutex(const Addr mutex) { MutexErrInfo MEI = { mutex, -1, DRD_INVALID_THREADID }; VG_(maybe_record_error)(VG_(get_running_tid)(), diff --git a/exp-drd/drd_mutex.h b/exp-drd/drd_mutex.h index e241f673fc..956bb44852 100644 --- a/exp-drd/drd_mutex.h +++ b/exp-drd/drd_mutex.h @@ -41,6 +41,7 @@ void mutex_set_lock_threshold(const UInt lock_threshold_ms); struct mutex_info* mutex_init(const Addr mutex, const MutexT mutex_type); void mutex_post_destroy(const Addr mutex); +void not_a_mutex(const Addr mutex); struct mutex_info* mutex_get(const Addr mutex); void mutex_pre_lock(const Addr mutex, const MutexT mutex_type, const Bool trylock);