From a8ccc2aa89c78108566c67b9e853797ea451f9c8 Mon Sep 17 00:00:00 2001 From: hwspeedy Date: Fri, 24 May 2024 10:20:25 +0200 Subject: FIX GCC Warnings, added more checking to gcc flags --- modules/computer/modules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/computer/modules.c') diff --git a/modules/computer/modules.c b/modules/computer/modules.c index e3423ed8..a2e53d8a 100644 --- a/modules/computer/modules.c +++ b/modules/computer/modules.c @@ -227,7 +227,7 @@ static const gchar* get_module_icon(const char *modname, const char *path) return NULL; const gchar *path_no_prefix = path + strlen(kernel_modules_dir); - const size_t path_no_prefix_len = strlen(path_no_prefix); + //const size_t path_no_prefix_len = strlen(path_no_prefix); int i; for (i = 0; modules_icons[i].dir; i++) { @@ -266,7 +266,7 @@ void scan_modules_do(void) { } char *c=fgets(buffer, 1024, lsmod); /* Discards the first line */ - + if(!c) return; //Sort modules while (fgets(buffer, 1024, lsmod)) { list=g_list_prepend(list,g_strdup(buffer)); -- cgit v1.2.3