summaryrefslogtreecommitdiffstats
path: root/MemoryMeter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-28 12:23:07 +0200
committercgzones <cgzones@googlemail.com>2020-09-29 10:44:42 +0200
commit6db2d52261d676a378625a24c307fa718025bc5f (patch)
treeaee3ae4218543b0c5b7abc8b04b93b2c3dcbb33b /MemoryMeter.c
parent843949131aa75312086bea6a50408e09d82f5209 (diff)
Covert Meter attributes to file-local constant arrays
Diffstat (limited to 'MemoryMeter.c')
-rw-r--r--MemoryMeter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/MemoryMeter.c b/MemoryMeter.c
index 91f75b9c..cac0da72 100644
--- a/MemoryMeter.c
+++ b/MemoryMeter.c
@@ -17,8 +17,10 @@ in the source distribution for its full text.
#include <assert.h>
-int MemoryMeter_attributes[] = {
- MEMORY_USED, MEMORY_BUFFERS, MEMORY_CACHE
+static const int MemoryMeter_attributes[] = {
+ MEMORY_USED,
+ MEMORY_BUFFERS,
+ MEMORY_CACHE
};
static void MemoryMeter_updateValues(Meter* this, char* buffer, int size) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy