aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-08-01 19:10:34 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-08-01 19:10:34 -0300
commit6b9f411948d84e4cafd439dc1865b99247bfe5ea (patch)
treef331dfc5c015d02357c3f51ef7247e36ce72169a
parent741697aa2a25f9b8dc89c74df0c7aed9345a2088 (diff)
downloadpython-schedutils-6b9f411948d84e4cafd439dc1865b99247bfe5ea.tar.gz
sched_setaffinity expects a cpu_set_t pointer, not a ptr to a pointer
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--python-schedutils/schedutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python-schedutils/schedutils.c b/python-schedutils/schedutils.c
index 40072b9..a3cbce3 100644
--- a/python-schedutils/schedutils.c
+++ b/python-schedutils/schedutils.c
@@ -129,7 +129,7 @@ static PyObject *set_affinity(PyObject *self __unused, PyObject *args)
CPU_SET_S(cpu, cpusetsize, cpus);
}
- if (sched_setaffinity(pid, sizeof(cpus), &cpus) < 0) {
+ if (sched_setaffinity(pid, sizeof(cpus), cpus) < 0) {
PyErr_SetFromErrno(PyExc_OSError);
return NULL;
}