rdsched: Pass unsigned * for scanf directive %u, not int *
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
05fe8b771c
commit
a96c43c723
1 changed files with 2 additions and 1 deletions
|
@ -247,7 +247,8 @@ parse_time(time_t *t, char *s, time_t *anchor)
|
|||
static char *
|
||||
parse_every(time_t *secs, char *s)
|
||||
{
|
||||
int nch, delta;
|
||||
int nch;
|
||||
unsigned delta;
|
||||
|
||||
nch = -1;
|
||||
sscanf(s, " every %u hours%n", &delta, &nch);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue