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 --- freebsd/Platform.c | 2 +- freebsd/Platform.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'freebsd') diff --git a/freebsd/Platform.c b/freebsd/Platform.c index 3cec913d..c74ab6da 100644 --- a/freebsd/Platform.c +++ b/freebsd/Platform.c @@ -47,7 +47,7 @@ in the source distribution for its full text. #include "zfs/ZfsCompressedArcMeter.h" -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 SignalItem Platform_signals[] = { { .name = " 0 Cancel", .number = 0 }, diff --git a/freebsd/Platform.h b/freebsd/Platform.h index 793746e7..36895b81 100644 --- a/freebsd/Platform.h +++ b/freebsd/Platform.h @@ -19,7 +19,7 @@ in the source distribution for its full text. #include "SignalsPanel.h" -extern ProcessField Platform_defaultFields[]; +extern const ProcessField Platform_defaultFields[]; extern const SignalItem Platform_signals[]; -- cgit v1.2.3