From 771465fed0cf50ee2dd790723245fc091699c324 Mon Sep 17 00:00:00 2001 From: rpj Date: Mon, 17 May 2004 01:38:02 +0000 Subject: re-indentation, bug fixes, hooks for pre-emptive async cancelation --- pthread_attr_setschedparam.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pthread_attr_setschedparam.c') diff --git a/pthread_attr_setschedparam.c b/pthread_attr_setschedparam.c index d7a0e70..d8b58bd 100644 --- a/pthread_attr_setschedparam.c +++ b/pthread_attr_setschedparam.c @@ -39,12 +39,12 @@ #include "sched.h" int -pthread_attr_setschedparam(pthread_attr_t *attr, - const struct sched_param *param) +pthread_attr_setschedparam (pthread_attr_t * attr, + const struct sched_param *param) { int priority; - if (ptw32_is_attr(attr) != 0 || param == NULL) + if (ptw32_is_attr (attr) != 0 || param == NULL) { return EINVAL; } @@ -52,12 +52,12 @@ pthread_attr_setschedparam(pthread_attr_t *attr, priority = param->sched_priority; /* Validate priority level. */ - if (priority < sched_get_priority_min(SCHED_OTHER) || - priority > sched_get_priority_max(SCHED_OTHER)) + if (priority < sched_get_priority_min (SCHED_OTHER) || + priority > sched_get_priority_max (SCHED_OTHER)) { return EINVAL; } - memcpy(&(*attr)->param, param, sizeof(*param)); + memcpy (&(*attr)->param, param, sizeof (*param)); return 0; } -- cgit v1.2.3