diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-12-16 15:40:50 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-12-17 14:45:15 +0100 |
commit | 6e9a5e9e49939daa8097a72dc9210b5e964af4b6 (patch) | |
tree | c4d8855b1a564ab756a74bbb7da8268d073384b6 /pcp | |
parent | 14f428a1721a7b179be7b650135ec591c215564e (diff) |
Mark ScreenDefaults const
Diffstat (limited to 'pcp')
-rw-r--r-- | pcp/Platform.c | 2 | ||||
-rw-r--r-- | pcp/Platform.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pcp/Platform.c b/pcp/Platform.c index 952ec7ca..6845207b 100644 --- a/pcp/Platform.c +++ b/pcp/Platform.c @@ -54,7 +54,7 @@ in the source distribution for its full text. Platform* pcp; -ScreenDefaults Platform_defaultScreens[] = { +const ScreenDefaults Platform_defaultScreens[] = { { .name = "Main", .columns = "PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME COMM", diff --git a/pcp/Platform.h b/pcp/Platform.h index 242e742e..dc51c736 100644 --- a/pcp/Platform.h +++ b/pcp/Platform.h @@ -58,7 +58,7 @@ typedef struct Platform_ { unsigned int ncpu; /* maximum processor count configured */ } Platform; -extern ScreenDefaults Platform_defaultScreens[]; +extern const ScreenDefaults Platform_defaultScreens[]; extern const unsigned int Platform_numberOfDefaultScreens; |