l4-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Typo in libhurd-cap-server/cap-server-intern.h


From: Peter Bruin
Subject: Typo in libhurd-cap-server/cap-server-intern.h
Date: Mon, 2 Aug 2004 14:41:28 +0200
User-agent: Internet Messaging Program (IMP) 3.2.1

Hi,

The if-statement in _hurd_cap_bucket_cond_check takes the address of
the function _hurd_cap_bucket_cond_busy instead of calling it and
checking the return value.  Here's a patch to fix this.

Thanks,
Peter


2004-08-02  Peter Bruin  <address@hidden>

        * libhurd-cap-server/cap-server-intern.h
        (_hurd_cap_bucket_cond_check): Check for return value of
        _hurd_cap_bucket_cond_busy instead of its address.


Index: libhurd-cap-server/cap-server-intern.h
===================================================================
RCS file: /cvsroot/hurd/hurd-l4/libhurd-cap-server/cap-server-intern.h,v
retrieving revision 1.3
diff -u -r1.3 cap-server-intern.h
--- libhurd-cap-server/cap-server-intern.h      8 Apr 2004 00:40:38 -0000       
1.3
+++ libhurd-cap-server/cap-server-intern.h      1 Aug 2004 22:26:31 -0000
@@ -417,7 +417,8 @@
 __attribute__((always_inline))
 _hurd_cap_bucket_cond_check (hurd_cap_bucket_t bucket)
 {
-  if (bucket->state == _HURD_CAP_STATE_YELLOW && !_hurd_cap_bucket_cond_busy)
+  if (bucket->state == _HURD_CAP_STATE_YELLOW
+      && !_hurd_cap_bucket_cond_busy (bucket))
     {
       bucket->state == _HURD_CAP_STATE_RED;
       pthread_cond_broadcast (&bucket->cond);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]