diff --git a/lib/c/2014/labcomm2014_default_scheduler.c b/lib/c/2014/labcomm2014_default_scheduler.c index 04b9144ecede453c5164eeb4436357ce9d6950f4..f1fd3d6b4155c6d9e0bf29c6375c26c4bc7241a6 100644 --- a/lib/c/2014/labcomm2014_default_scheduler.c +++ b/lib/c/2014/labcomm2014_default_scheduler.c @@ -90,20 +90,20 @@ static int scheduler_enqueue(struct labcomm2014_scheduler *s, } static const struct labcomm2014_scheduler_action scheduler_action = { - scheduler_free, - scheduler_writer_lock, - scheduler_writer_unlock, - scheduler_data_lock, - scheduler_data_unlock, - scheduler_now, - scheduler_sleep, - scheduler_wakeup, - scheduler_enqueue + .free = scheduler_free, + .writer_lock = scheduler_writer_lock, + .writer_unlock = scheduler_writer_unlock, + .data_lock = scheduler_data_lock, + .data_unlock = scheduler_data_unlock, + .now = scheduler_now, + .sleep = scheduler_sleep, + .wakeup = scheduler_wakeup, + .enqueue = scheduler_enqueue }; static struct labcomm2014_scheduler scheduler = { - &scheduler_action, - NULL + .action = &scheduler_action, + .context = NULL }; struct labcomm2014_scheduler *labcomm2014_default_scheduler = &scheduler; diff --git a/lib/c/2014/labcomm2014_dynamic_buffer_writer.c b/lib/c/2014/labcomm2014_dynamic_buffer_writer.c index 61bdef115e8fa9eec4e87c9c7b57f7d2f79371a6..67db27bc43feaeb0d1b6625f30ed5b95e57eb8c5 100644 --- a/lib/c/2014/labcomm2014_dynamic_buffer_writer.c +++ b/lib/c/2014/labcomm2014_dynamic_buffer_writer.c @@ -123,12 +123,12 @@ static int dyn_ioctl(struct labcomm2014_writer *w, } static const struct labcomm2014_writer_action action = { - dyn_alloc, - dyn_free, - dyn_start, - dyn_end, - dyn_flush, - dyn_ioctl + .alloc = dyn_alloc, + .free = dyn_free, + .start = dyn_start, + .end = dyn_end, + .flush = dyn_flush, + .ioctl = dyn_ioctl }; const struct labcomm2014_writer_action *labcomm2014_dynamic_buffer_writer_action = &action;