api: shorten function checks (and put each into a different scope)
[libc-test] / src / api / sched.c
index 0a130ae..ef5fb14 100644 (file)
@@ -19,12 +19,12 @@ C(SCHED_FIFO)
 C(SCHED_RR)
 C(SCHED_SPORADIC)
 C(SCHED_OTHER)
-int(*p_sched_get_priority_max)(int) = sched_get_priority_max;
-int(*p_sched_get_priority_min)(int) = sched_get_priority_min;
-int(*p_sched_getparam)(pid_t,struct sched_param*) = sched_getparam;
-int(*p_sched_getscheduler)(pid_t) = sched_getscheduler;
-int(*p_sched_rr_get_interval)(pid_t,struct timespec*) = sched_rr_get_interval;
-int(*p_sched_setparam)(pid_t,const struct sched_param*) = sched_setparam;
-int(*p_sched_setscheduler)(pid_t,int,const struct sched_param*) = sched_setscheduler;
-int(*p_sched_yield)(void) = sched_yield;
+{int(*p)(int) = sched_get_priority_max;}
+{int(*p)(int) = sched_get_priority_min;}
+{int(*p)(pid_t,struct sched_param*) = sched_getparam;}
+{int(*p)(pid_t) = sched_getscheduler;}
+{int(*p)(pid_t,struct timespec*) = sched_rr_get_interval;}
+{int(*p)(pid_t,const struct sched_param*) = sched_setparam;}
+{int(*p)(pid_t,int,const struct sched_param*) = sched_setscheduler;}
+{int(*p)(void) = sched_yield;}
 }