Rename event_enable_lock_debuging() to ..._debugging()

Keep the misspelled version around for backward compatibility

Based on a patch by Diwaker Gupta.
This commit is contained in:
Nick Mathewson 2012-08-23 10:46:29 -04:00
parent e3d010c8f6
commit 07e132e3ad
4 changed files with 13 additions and 2 deletions

View File

@ -275,8 +275,15 @@ debug_cond_wait(void *cond_, void *lock_, const struct timeval *tv)
return r;
}
/* misspelled version for backward compatibility */
void
evthread_enable_lock_debuging(void)
{
evthread_enable_lock_debugging();
}
void
evthread_enable_lock_debugging(void)
{
struct evthread_lock_callbacks cbs = {
EVTHREAD_LOCK_API_VERSION,

View File

@ -217,6 +217,10 @@ int evthread_use_pthreads(void);
* If you're going to call this function, you must do so before any locks are
* allocated.
**/
void evthread_enable_lock_debugging(void);
/* Old (misspelled) version: This is deprecated; use
* evthread_enable_log_debugging instead. */
void evthread_enable_lock_debuging(void);
#endif /* EVENT__DISABLE_THREAD_SUPPORT */

View File

@ -436,7 +436,7 @@ main(int argc, const char **argv)
#ifndef EVENT__DISABLE_THREAD_SUPPORT
if (!getenv("EVENT_NO_DEBUG_LOCKS"))
evthread_enable_lock_debuging();
evthread_enable_lock_debugging();
#endif
tinytest_set_aliases(testaliases);

View File

@ -594,7 +594,7 @@ main(int argc, char **argv)
}
#ifndef EVENT__DISABLE_THREAD_SUPPORT
evthread_enable_lock_debuging();
evthread_enable_lock_debugging();
#endif
return test_ratelimiting();