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 --- MemoryMeter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'MemoryMeter.c') 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 -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) { -- cgit v1.2.3