From 6db2d52261d676a378625a24c307fa718025bc5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 28 Sep 2020 12:23:07 +0200 Subject: Covert Meter attributes to file-local constant arrays --- CPUMeter.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'CPUMeter.c') diff --git a/CPUMeter.c b/CPUMeter.c index c5e27124..44ef1add 100644 --- a/CPUMeter.c +++ b/CPUMeter.c @@ -16,8 +16,15 @@ in the source distribution for its full text. #include #include -int CPUMeter_attributes[] = { - CPU_NICE, CPU_NORMAL, CPU_SYSTEM, CPU_IRQ, CPU_SOFTIRQ, CPU_STEAL, CPU_GUEST, CPU_IOWAIT +static const int CPUMeter_attributes[] = { + CPU_NICE, + CPU_NORMAL, + CPU_SYSTEM, + CPU_IRQ, + CPU_SOFTIRQ, + CPU_STEAL, + CPU_GUEST, + CPU_IOWAIT }; static void CPUMeter_init(Meter* this) { -- cgit v1.2.3