* k5-thread.h (k5_os_mutex_lock, k5_os_mutex_unlock, k5_os_mutex_assert_locked,
authorKen Raeburn <raeburn@mit.edu>
Sun, 11 Jul 2004 07:00:03 +0000 (07:00 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 11 Jul 2004 07:00:03 +0000 (07:00 +0000)
k5_os_mutex_assert_unlocked) [USE_PTHREAD_LOCK_ONLY_IF_LOADED]: Fix typo in
accessing non-pthread versions.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16580 dc483132-0cff-0310-8789-dd5450dbe970

src/include/ChangeLog
src/include/k5-thread.h

index 7bde94f66f380845be1aecd37a6abe002776f28f..1974686961cd64ad6a5dfcc2b92c9328493d65a0 100644 (file)
@@ -1,5 +1,10 @@
 2004-07-11  Ken Raeburn  <raeburn@mit.edu>
 
+       * k5-thread.h (k5_os_mutex_lock, k5_os_mutex_unlock,
+       k5_os_mutex_assert_locked, k5_os_mutex_assert_unlocked)
+       [USE_PTHREAD_LOCK_ONLY_IF_LOADED]: Fix typo in accessing
+       non-pthread versions.
+
        * configure.in: Check krb5_cv_inet6_with_dinet6 as well as
        krb5_cv_inet6 when deciding whether to test for in6addr_any.  If
        gcc is in use, suppress pedantic warnings about "inline".
index 941073128aa59c73f210829038fa022b137288f3..4d1a6fca58157b47111b7c2a04eecb1a4e66747c 100644 (file)
@@ -426,20 +426,20 @@ typedef struct {
 # define k5_os_mutex_lock(M)                   \
        (K5_PTHREADS_LOADED                     \
         ? pthread_mutex_lock(&(M)->p)          \
-        : k5_os_nothread_lock(&(M)->n))
+        : k5_os_nothread_mutex_lock(&(M)->n))
 # define k5_os_mutex_unlock(M)                 \
        (K5_PTHREADS_LOADED                     \
         ? pthread_mutex_unlock(&(M)->p)        \
-        : k5_os_nothread_unlock(&(M)->n))
+        : k5_os_nothread_mutex_unlock(&(M)->n))
 
 # define k5_os_mutex_assert_unlocked(M)                        \
        (K5_PTHREADS_LOADED                             \
         ? k5_pthread_assert_unlocked(&(M)->p)          \
-        : k5_os_nothread_assert_unlocked(&(M)->n))
+        : k5_os_nothread_mutex_assert_unlocked(&(M)->n))
 # define k5_os_mutex_assert_locked(M)                  \
        (K5_PTHREADS_LOADED                             \
         ? k5_pthread_assert_locked(&(M)->p)            \
-        : k5_os_nothread_assert_locked(&(M)->n))
+        : k5_os_nothread_mutex_assert_locked(&(M)->n))
 
 #else