Skip to content
Snippets Groups Projects
Commit 61819c0e authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Fix a typo in last commit that was not noticed until CONFIG_SIG_EVTHREAD was enabled

parent da5115e3
No related branches found
No related tags found
No related merge requests found
......@@ -218,13 +218,13 @@ int timer_create(clockid_t clockid, FAR struct sigevent *evp, FAR timer_t *timer
* timer ID."
*/
ret->pt_event.sigev_notify = SIGEV_SIGNAL;
ret->pt_event.sigev_signo = SIGALRM;
ret->pt_event.sigev_value.sival_ptr = ret;
ret->pt_event.sigev_notify = SIGEV_SIGNAL;
ret->pt_event.sigev_signo = SIGALRM;
ret->pt_event.sigev_value.sival_ptr = ret;
#ifdef CONFIG_SIG_EVTHREAD
ret->pt_event.sigev_value.sigev_notify_function = NULL;
ret->pt_event.sigev_value.sigev_notify_attributes = NULL;
ret->pt_event.sigev_notify_function = NULL;
ret->pt_event.sigev_notify_attributes = NULL;
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment