[PATCH] watchdog add settimeout ioctl
Bernhard Fischer
rep.dot.nop at gmail.com
Mon Aug 18 15:27:09 UTC 2008
On Tue, Aug 12, 2008 at 03:50:18PM +0300, Darius wrote:
>Bernhard Fischer wrote:
>> On Wed, Aug 06, 2008 at 11:20:10AM +0300, Darius wrote:
>>
>>> #define OPT_FOREGROUND 0x01
>>> -#define OPT_TIMER 0x02
>>> +#define OPT_STIMER 0x02
>>> +#define OPT_HTIMER 0x03
>>
>>> + if (opts & OPT_STIMER) {
>>
>>> + if (opts & OPT_HTIMER)
>>
>> I did not look closely, but it sounds like this will not work like you
>> intend.
>>
>> Generally it's less error prone and furthermore easier to read
>> (IMO) if you say:
>>
>> #define OPT_FOREGROUND (1<<0)
>> #define OPT_STIMER (1<<1)
>> #define OPT_HTIMER (1<<2)
>>
>> please fix, test and resend for inclusion.
>> Thanks!
>
>it's only optical difference. this utility is fully tested - works ok.
It's definitely not only optical difference :) Please look carefully.
More information about the busybox
mailing list