diff options
author | hwspeedy <ns@bigbear.dk> | 2024-05-24 10:20:25 +0200 |
---|---|---|
committer | hwspeedy <ns@bigbear.dk> | 2024-05-24 10:20:25 +0200 |
commit | a8ccc2aa89c78108566c67b9e853797ea451f9c8 (patch) | |
tree | 9499a58b04a6baf1ab4a0741f7a31d3ddbc0fbc8 /modules/computer/modules.c | |
parent | 25c366a8074af72c0811a960b947302bed036669 (diff) |
FIX GCC Warnings, added more checking to gcc flags
Diffstat (limited to 'modules/computer/modules.c')
-rw-r--r-- | modules/computer/modules.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |