[haiku-commits] haiku: hrev45171 - src/libs/compat/freebsd_network

  • From: korli@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 18 Jan 2013 19:44:39 +0100 (CET)

hrev45171 adds 1 changeset to branch 'master'
old head: 20cbdcd16648f6b2a0add3374f00380249789d45
new head: 4280f862ecceb60e1932d747ca9a45610795c7f4
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=4280f86+%5E20cbdcd

----------------------------------------------------------------------------

4280f86: Fixed style issues, as pointed by Axel

                                   [ Jerome Duval <jerome.duval@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45171
Commit:      4280f862ecceb60e1932d747ca9a45610795c7f4
URL:         http://cgit.haiku-os.org/haiku/commit/?id=4280f86
Author:      Jerome Duval <jerome.duval@xxxxxxxxx>
Date:        Fri Jan 18 18:43:20 2013 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 2 deletions(-)
src/libs/compat/freebsd_network/mutex.c | 4 ++--

----------------------------------------------------------------------------

diff --git a/src/libs/compat/freebsd_network/mutex.c 
b/src/libs/compat/freebsd_network/mutex.c
index f626b35..d7589a8 100644
--- a/src/libs/compat/freebsd_network/mutex.c
+++ b/src/libs/compat/freebsd_network/mutex.c
@@ -21,7 +21,7 @@ void
 mtx_init(struct mtx *mutex, const char *name, const char *type,
        int options)
 {
-       if (options & MTX_RECURSE) {
+       if ((options & MTX_RECURSE) != 0) {
                recursive_lock_init_etc(&mutex->u.recursive, name,
                        MUTEX_FLAG_CLONE_NAME);
        } else {
@@ -36,7 +36,7 @@ mtx_init(struct mtx *mutex, const char *name, const char 
*type,
 void
 mtx_destroy(struct mtx *mutex)
 {
-       if (mutex->type & MTX_RECURSE)
+       if ((mutex->type & MTX_RECURSE) != 0)
                recursive_lock_destroy(&mutex->u.recursive);
        else
                mutex_destroy(&mutex->u.mutex.lock);


Other related posts:

  • » [haiku-commits] haiku: hrev45171 - src/libs/compat/freebsd_network - korli