diff options
author | Christopher Faylor <me@cgf.cx> | 2002-09-23 00:31:31 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-09-23 00:31:31 +0000 |
commit | f0227ea3c78d8d23dc35f0939219649447eecfae (patch) | |
tree | 0a116e294fa35db8a66901f6ef85b41720913c2f /winsup/cygwin/sched.cc | |
parent | c87c8a533f9e917878d433956420953598ab6cd6 (diff) | |
download | cygnal-f0227ea3c78d8d23dc35f0939219649447eecfae.tar.gz cygnal-f0227ea3c78d8d23dc35f0939219649447eecfae.tar.bz2 cygnal-f0227ea3c78d8d23dc35f0939219649447eecfae.zip |
More GNUify non-GNU formatted functions calls throughout.
Diffstat (limited to 'winsup/cygwin/sched.cc')
-rw-r--r-- | winsup/cygwin/sched.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/sched.cc b/winsup/cygwin/sched.cc index 7b4074d7f..185530210 100644 --- a/winsup/cygwin/sched.cc +++ b/winsup/cygwin/sched.cc @@ -1,6 +1,6 @@ /* sched.cc: scheduler interface for Cygwin - Copyright 2001 Red Hat, Inc. + Copyright 2001, 2002 Red Hat, Inc. Written by Robert Collins <rbtcollins@hotmail.com> @@ -81,7 +81,7 @@ sched_get_priority_min (int policy) /* Check a scheduler parameter struct for valid settings */ int -valid_sched_parameters(const struct sched_param *param) +valid_sched_parameters (const struct sched_param *param) { if (param->sched_priority < -14 || param->sched_priority > 15) { @@ -283,7 +283,7 @@ sched_setparam (pid_t pid, const struct sched_param *param) return -1; } - if (!valid_sched_parameters(param)) + if (!valid_sched_parameters (param)) { set_errno (EINVAL); return -1; @@ -400,7 +400,7 @@ sched_setparam (pid_t pid, const struct sched_param *param) * a wide range of values is to allow more flexible code in the future. */ int -sched_set_thread_priority(HANDLE thread, int priority) +sched_set_thread_priority (HANDLE thread, int priority) { int real_pri; real_pri = 16 - ((priority + 16) >> 1); @@ -418,7 +418,7 @@ sched_set_thread_priority(HANDLE thread, int priority) else real_pri = THREAD_PRIORITY_HIGHEST; - if (!SetThreadPriority(thread, real_pri)) + if (!SetThreadPriority (thread, real_pri)) /* invalid handle, no access are the only expected errors. */ return EPERM; return 0; |