NetBSD-Bugs archive

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

Re: lib/41919: [dM] S_IS*() insufficiently parenthesized



On Sun, Aug 23, 2009 at 08:27:24AM +0100, David Laight wrote:
 > On Sat, Aug 22, 2009 at 10:05:01PM +0000, der Mouse wrote:
 > > >Synopsis:       [dM] S_IS*() insufficiently parenthesized
 > >     
 > >    -#define        S_ISDIR(m)      ((m & _S_IFMT) == _S_IFDIR)     /* 
 > > directory */
 > >    +#define        S_ISDIR(m)      (((m) & _S_IFMT) == _S_IFDIR)   /* 
 > > directory */
 > 
 > Use your 'commit bit' ...

I bet he doesn't have a -current tree :-)

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index