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 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' ...

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index