Skip to content

Commit

Permalink
timer: pass flags when registering a new job
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Dec 5, 2016
1 parent 968c1ba commit 68d4240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ int register_utimer(char *label, utimer_function f, void* param,
struct os_timer* t;

flags = flags | TIMER_FLAG_IS_UTIMER; /* just to be sure */
t = new_os_timer( label, 1, (timer_function*)f, param, interval);
t = new_os_timer( label, flags, (timer_function*)f, param, interval);
if (t==NULL)
return E_OUT_OF_MEM;
/* insert it into the utimer list*/
Expand Down

0 comments on commit 68d4240

Please sign in to comment.