diff --git a/include/haproxy/cpuset.h b/include/haproxy/cpuset.h index 390115bcd..c9226f113 100644 --- a/include/haproxy/cpuset.h +++ b/include/haproxy/cpuset.h @@ -21,7 +21,7 @@ int ha_cpuset_clr(struct hap_cpuset *set, int cpu); /* Bitwise and equivalent operation between and stored in . */ -void ha_cpuset_and(struct hap_cpuset *dst, const struct hap_cpuset *src); +void ha_cpuset_and(struct hap_cpuset *dst, struct hap_cpuset *src); /* Returns the count of set index in . */ @@ -35,7 +35,7 @@ int ha_cpuset_ffs(const struct hap_cpuset *set); /* Copy set into . */ -void ha_cpuset_assign(struct hap_cpuset *dst, const struct hap_cpuset *src); +void ha_cpuset_assign(struct hap_cpuset *dst, struct hap_cpuset *src); /* Returns the biggest index plus one usable on the platform. */ diff --git a/src/cpuset.c b/src/cpuset.c index c1632c5e4..f7b66020e 100644 --- a/src/cpuset.c +++ b/src/cpuset.c @@ -47,7 +47,7 @@ int ha_cpuset_clr(struct hap_cpuset *set, int cpu) #endif } -void ha_cpuset_and(struct hap_cpuset *dst, const struct hap_cpuset *src) +void ha_cpuset_and(struct hap_cpuset *dst, struct hap_cpuset *src) { #if defined(CPUSET_USE_CPUSET) CPU_AND(&dst->cpuset, &dst->cpuset, &src->cpuset); @@ -94,7 +94,7 @@ int ha_cpuset_ffs(const struct hap_cpuset *set) #endif } -void ha_cpuset_assign(struct hap_cpuset *dst, const struct hap_cpuset *src) +void ha_cpuset_assign(struct hap_cpuset *dst, struct hap_cpuset *src) { #if defined(CPUSET_USE_CPUSET) CPU_ZERO(&dst->cpuset);