Re: [PATCH v2 4/6] tools/misc: xenwatchdogd: add parse_secs()

2024-04-09 Thread Anthony PERARD
On Fri, Mar 29, 2024 at 11:10:54AM +, le...@solinno.co.uk wrote: > diff --git a/tools/misc/xenwatchdogd.c b/tools/misc/xenwatchdogd.c > index 2e7f9f51c5..19ec4c5359 100644 > --- a/tools/misc/xenwatchdogd.c > +++ b/tools/misc/xenwatchdogd.c > @@ -49,6 +49,18 @@ static void catch_usr1(int sig) >

[PATCH v2 4/6] tools/misc: xenwatchdogd: add parse_secs()

2024-03-29 Thread leigh
From: Leigh Brown Create a new parse_secs() function to parse the timeout and sleep parameters. This ensures that non-numeric parameters are not accidentally treated as numbers. Signed-off-by: Leigh Brown --- tools/misc/xenwatchdogd.c | 23 +++ 1 file changed, 15