Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Move is_out_of_time() to main.c for general use

Martin Hundebøll
2011-12-03T15:54:09Z

On 2011-12-03 16:46, Marek Lindner wrote:
> On Saturday, December 03, 2011 23:41:38 Martin Hundebøll wrote:
>> On 2011-12-03 08:36, Marek Lindner wrote:
>>> Since it is a simple one-liner you could make it a define or at least
>>> static inline (in main.h).
>>
>> Correct. Maybe the correct solution is to remove the function and just call
>> time_is_before_jiffies() directly instead?
>
> Guess you misread me. I like the idea of having this easy to read wrapper.
> Before you moved it to main.c it was a static function. The compiler could
> better optimize it.

OK. Didn't misread you; just tried to think :) I'll send a patch with moving it to an inline function in main.h.

--
Kind regards
Martin Hundebøll

+45 61 65 54 61
martin@hundeboll.net

Nordborggade 57, 2. tv
8000 Aarhus C
Denmark