Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jul 2001 09:06:15 +0200 (CEST)
From:      Harti Brandt <brandt@fokus.gmd.de>
To:        <jake@freebsd.org>
Cc:        <hackers@freebsd.org>
Subject:   ()s missing in condvar.h
Message-ID:  <Pine.BSF.4.33.0107050903570.63763-100000@beagle.fokus.gmd.de>

next in thread | raw e-mail | index | archive | help

Hi,

()s are missing around the macro argument in cv_waitq_empty. The call

	if(!(cv_waitq_empty(&sc->foo_cv)))
		...

will otherwise fail to compile.

harti

Index: condvar.h
===================================================================
RCS file: /usr/ncvs/src/sys/sys/condvar.h,v
retrieving revision 1.2
diff -r1.2 condvar.h
66c66
< #define	cv_waitq_empty(cvp)	(TAILQ_EMPTY(&cvp->cv_waitq))
---
> #define	cv_waitq_empty(cvp)	(TAILQ_EMPTY(&(cvp)->cv_waitq))



-- 
harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
              brandt@fokus.gmd.de, harti@begemot.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0107050903570.63763-100000>