summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysdeps/linux/ChangeLog4
-rw-r--r--sysdeps/linux/sysinfo.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog
index d2fa822b..94b78404 100644
--- a/sysdeps/linux/ChangeLog
+++ b/sysdeps/linux/ChangeLog
@@ -1,5 +1,9 @@
2004-07-03 Benoît Dejean <tazforever@dlfp.org>
+ * sysinfo.c: (init_sysinfo): Removed useless memset.
+
+2004-07-03 Benoît Dejean <tazforever@dlfp.org>
+
* glibtop_server.h:
* glibtop_server.c: (try_file_to_buffer), (file_to_buffer): Added. These
functions are commonly used. Misc cleanups.
diff --git a/sysdeps/linux/sysinfo.c b/sysdeps/linux/sysinfo.c
index fbbed5ff..bf67bf6b 100644
--- a/sysdeps/linux/sysinfo.c
+++ b/sysdeps/linux/sysinfo.c
@@ -42,8 +42,6 @@ init_sysinfo (glibtop *server)
glibtop_init_s (&server, GLIBTOP_SYSDEPS_CPU, 0);
- memset (&sysinfo, 0, sizeof (glibtop_sysinfo));
-
file_to_buffer(server, buffer, FILENAME);
/* cpuinfo records are seperated by a blank line */