]> granicus.if.org Git - libevent/commitdiff
Rename event_enable_lock_debuging() to ..._debugging()
authorNick Mathewson <nickm@torproject.org>
Thu, 23 Aug 2012 14:46:29 +0000 (10:46 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 23 Aug 2012 14:46:29 +0000 (10:46 -0400)
Keep the misspelled version around for backward compatibility

Based on a patch by Diwaker Gupta.

evthread.c
include/event2/thread.h
test/regress_main.c
test/test-ratelim.c

index b5d3d577e3f83f1aa580914a3a3b3e48180adef2..4da5d24e80408d683c5d10408de81b179d7a4c9f 100644 (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,
index cf21afe2596f212abf6f4ac4530f119647f441c9..f9f51500b6650398b1bc233277a1d932abc600ea 100644 (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 */
index 26e539ebd40532221e2daa69752f0f7b673767f7..ed90f8172297f116ddf011f082589cfb8448c468 100644 (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);
index 0d8278aadf7aacf0fd967d5376bf52ce6a98b355..b53ffe66372d3d7ec2497cb5b0f01f3e94d4a170 100644 (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();