From 9ad584b5762433f7c99d7cc7b65ad21ebe4ff932 Mon Sep 17 00:00:00 2001 From: Anser Date: Fri, 31 Jul 2026 09:16:23 +0200 Subject: TO BE SQUISHED:safe of current working stand, to get the logos vom ascii directory --- src/modules/memory/memory.c | 4 ++-- src/modules/memory/memory.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/memory') diff --git a/src/modules/memory/memory.c b/src/modules/memory/memory.c index 211cf44..62eeafe 100644 --- a/src/modules/memory/memory.c +++ b/src/modules/memory/memory.c @@ -1,12 +1,12 @@ #include #include "memory.h" -int memory(void) { +char *memory(void) { FILE *file = fopen("/proc/meminfo", "r"); if (!file) { perror("Error fopen meminfo"); - return 1; + return NULL; } char line[256]; diff --git a/src/modules/memory/memory.h b/src/modules/memory/memory.h index f963702..5c35178 100644 --- a/src/modules/memory/memory.h +++ b/src/modules/memory/memory.h @@ -1,6 +1,6 @@ #ifndef MEMORY_H #define MEMORY_H -int memory(void); +char *memory(void); #endif // MEMORY_H -- cgit v1.2.3