tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Undefined int shift in ifwatchd
On Wed, Jan 27, 2016 at 08:33:55PM +0100, Martin Husemann wrote:
> On Wed, Jan 27, 2016 at 07:53:27PM +0100, Martin Husemann wrote:
> > How about defining a RTA_ALL_MASK (or however we'd call it, defined as
> > 0x1ff) and write:
> >
> > for (i = 1; i & RTA_ALL_MASK; i <<= 1) {
> >
> > ?
>
> Or without global header changes, just use ffs() ?
(of course with proper shifts added...) However, I discussed with Riastradh
a few other variants to format it even cleaner and in the end left it as
it is now.
Martin
Home |
Main Index |
Thread Index |
Old Index