This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository e16-epplets.

View the commit online.

commit 244ce56388ee9654da14825da2e032c280d6e60f
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Fri Jan 17 13:47:59 2025 +0100

    Fix a couple of warnings when using libgtop
---
 epplets/E-Load.c     | 3 +--
 epplets/E-MemWatch.c | 3 ++-
 epplets/E-Sys.c      | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/epplets/E-Load.c b/epplets/E-Load.c
index 17fcfd4..2eecef6 100644
--- a/epplets/E-Load.c
+++ b/epplets/E-Load.c
@@ -21,8 +21,7 @@ cb_timer(void *data __UNUSED__)
 /* libgtop only handles total load, not per-CPU load */
 
     glibtop_loadavg loadavg;
-    double          val, val2;
-    int             i;
+    double          val2;
 
     glibtop_get_loadavg(&loadavg);
     val2 = loadavg.loadavg[0];
diff --git a/epplets/E-MemWatch.c b/epplets/E-MemWatch.c
index bae53c4..20c570e 100644
--- a/epplets/E-MemWatch.c
+++ b/epplets/E-MemWatch.c
@@ -47,7 +47,7 @@ static void
 timer_cb(void *data __UNUSED__)
 {
     char            buff[1024];
-    unsigned long   total, used, buffers, cached, free;
+    unsigned long   total, used, buffers, cached;
 
 #ifdef HAVE_LIBGTOP
     int             check = 0;
@@ -62,6 +62,7 @@ timer_cb(void *data __UNUSED__)
     cached = (unsigned long)mem.cached;
 #else
     FILE           *fp;
+    unsigned long   free;
 
     if (!(fp = fopen("/proc/meminfo", "r")))
     {
diff --git a/epplets/E-Sys.c b/epplets/E-Sys.c
index 445de65..5334408 100644
--- a/epplets/E-Sys.c
+++ b/epplets/E-Sys.c
@@ -44,7 +44,7 @@ timer_cb(void *data __UNUSED__)
 {
     char            buff[1024];
     unsigned long   days, hours, mins, secs;
-    double          total_secs, delay;
+    double          delay;
 
 #ifdef HAVE_LIBGTOP
 
@@ -54,8 +54,8 @@ timer_cb(void *data __UNUSED__)
     secs = (unsigned long)uptime.uptime;
 
 #else
-
     FILE           *fp;
+    double          total_secs;
 
     if (!(fp = fopen("/proc/uptime", "r")))
     {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to