From f614b8a19fe92cd13862605c16d69aa23c8b9bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 19 Dec 2020 18:10:03 +0100 Subject: Mark Platform_defaultFields const --- unsupported/Platform.c | 2 +- unsupported/Platform.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'unsupported') diff --git a/unsupported/Platform.c b/unsupported/Platform.c index b435e186..94e1b7c7 100644 --- a/unsupported/Platform.c +++ b/unsupported/Platform.c @@ -28,7 +28,7 @@ const SignalItem Platform_signals[] = { const unsigned int Platform_numberOfSignals = ARRAYSIZE(Platform_signals); -ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_VIRT, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 }; +const ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_VIRT, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 }; const MeterClass* const Platform_meterTypes[] = { &CPUMeter_class, diff --git a/unsupported/Platform.h b/unsupported/Platform.h index 5f777381..4254122e 100644 --- a/unsupported/Platform.h +++ b/unsupported/Platform.h @@ -19,7 +19,7 @@ extern const SignalItem Platform_signals[]; extern const unsigned int Platform_numberOfSignals; -extern ProcessField Platform_defaultFields[]; +extern const ProcessField Platform_defaultFields[]; extern const MeterClass* const Platform_meterTypes[]; -- cgit v1.2.3