diff options
author | David Xu <davidxu@FreeBSD.org> | 2008-03-13 02:56:11 +0000 |
---|---|---|
committer | David Xu <davidxu@FreeBSD.org> | 2008-03-13 02:56:11 +0000 |
commit | 83660cf974f5a295b801a4a213ba4be67abe7362 (patch) | |
tree | 4e7ae61d16e0ca83bc31aa038047a070a506bee5 | |
parent | 9fbfd54e8ee4454b26bdb078b2bd153e2205bf41 (diff) | |
download | src-83660cf974f5a295b801a4a213ba4be67abe7362.tar.gz src-83660cf974f5a295b801a4a213ba4be67abe7362.zip |
Add const qualifier to cpuset mask's pointer, since the cpuset mask should
be not changed by the system call.
Notes
Notes:
svn path=/head/; revision=177135
-rw-r--r-- | sys/sys/cpuset.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/cpuset.h b/sys/sys/cpuset.h index 0788d46e5e61..4188dd473fee 100644 --- a/sys/sys/cpuset.h +++ b/sys/sys/cpuset.h @@ -162,7 +162,7 @@ int cpuset(cpusetid_t *); int cpuset_setid(cpuwhich_t, id_t, cpusetid_t); int cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *); int cpuset_getaffinity(cpulevel_t, cpuwhich_t, id_t, int, cpuset_t *); -int cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, int, cpuset_t *); +int cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, int, const cpuset_t *); __END_DECLS #endif #endif /* !_SYS_CPUSET_H_ */ |