From 740a82a7618b40eaacce9c818a380a338001a3e5 Mon Sep 17 00:00:00 2001 From: Henrik Holst Date: Wed, 3 May 2023 21:54:54 +0200 Subject: [PATCH] use defines instead of value use defines instead of values for the park_or_pin variable --- common/common-cpu.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/common-cpu.h b/common/common-cpu.h index 5fbf759..639c889 100644 --- a/common/common-cpu.h +++ b/common/common-cpu.h @@ -31,10 +31,13 @@ POSSIBILITY OF SUCH DAMAGE. #pragma once +#define IS_CPU_PARK 0 +#define IS_CPU_PIN 1 + /* Storage for CPU info*/ struct GameModeCPUInfo { size_t num_cpu; - int park_or_pin; /* 0 to park 1 to pin */ + int park_or_pin; cpu_set_t *online; cpu_set_t *to_keep; };