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

This commit is contained in:
Gregory Nutt 2016-01-28 16:50:20 -06:00
parent da5115e3e6
commit 61819c0e3e

View File

@ -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
}