libc_r: Tiny adjustment, git add. master
authorzrj <rimvydas.jasinskas@gmail.com>
Mon, 26 Sep 2016 10:34:38 +0000 (13:34 +0300)
committerzrj <zrj@dragonflybsd.org>
Mon, 26 Sep 2016 11:02:02 +0000 (14:02 +0300)
Got lost for fdc2e97852d952eedc66a271c9ae1c12f246934b

lib/libc_r/uthread/uthread_attr_setschedpolicy.c

index 22b1dc2..ac78bbe 100644 (file)
@@ -37,7 +37,7 @@
 #include "pthread_private.h"
 
 int
-_pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy)
+_pthread_attr_setschedpolicy(pthread_attr_t *attr, int pol)
 {
        int ret = 0;
 
@@ -46,7 +46,7 @@ _pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy)
        else if (pol != SCHED_FIFO && pol != SCHED_OTHER && pol != SCHED_RR)
                ret = EINVAL;
        else
-               (*attr)->sched_policy = policy;
+               (*attr)->sched_policy = pol;
 
        return(ret);
 }