summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2008-03-13 02:56:11 +0000
committerdavidxu <davidxu@FreeBSD.org>2008-03-13 02:56:11 +0000
commit41623df806ab69a00b2406c48efb23309c097829 (patch)
tree4e7ae61d16e0ca83bc31aa038047a070a506bee5
parentf4d90c5978f37c48f6e015d0d6351cd140a14eed (diff)
downloadFreeBSD-src-41623df806ab69a00b2406c48efb23309c097829.zip
FreeBSD-src-41623df806ab69a00b2406c48efb23309c097829.tar.gz
Add const qualifier to cpuset mask's pointer, since the cpuset mask should
be not changed by the system call.
-rw-r--r--sys/sys/cpuset.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/cpuset.h b/sys/sys/cpuset.h
index 0788d46..4188dd4 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_ */
OpenPOWER on IntegriCloud