diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2004-06-12 15:39:31 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2004-06-12 15:39:31 +0000 |
commit | d5b8a71e5b791fc4e6bf5ee2263ae397202e4f32 (patch) | |
tree | c4941baf76f3f73bb5885058bdcbb8e16c7e4ff0 | |
parent | f03e2d3c1118e85da90f98d99d694f56617f6590 (diff) | |
download | libgtop-d5b8a71e5b791fc4e6bf5ee2263ae397202e4f32.tar.gz |
block_size is now defined as a guint32 instead of a fuzzy gint.
* include/glibtop/fsusage.h: block_size is now defined as a guint32
instead of a fuzzy gint.
* lib/sysdeps.c: (glibtop_get_sysdeps_r): Small cleanup.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | include/glibtop/fsusage.h | 2 | ||||
-rw-r--r-- | lib/sysdeps.c | 2 |
3 files changed, 9 insertions, 2 deletions
@@ -1,5 +1,12 @@ 2004-06-12 Benoît Dejean <tazforever@dlfp.org> + * include/glibtop/fsusage.h: block_size is now defined as a guint32 + instead of a fuzzy gint. + + * lib/sysdeps.c: (glibtop_get_sysdeps_r): Small cleanup. + +2004-06-12 Benoît Dejean <tazforever@dlfp.org> + * lib/init.c: Added missing initializer. 2004-06-09 Benoît Dejean <TazForEver@dlfp.org> diff --git a/include/glibtop/fsusage.h b/include/glibtop/fsusage.h index f5045450..82e9c7ea 100644 --- a/include/glibtop/fsusage.h +++ b/include/glibtop/fsusage.h @@ -48,7 +48,7 @@ struct _glibtop_fsusage bavail, /* Free blocks available to non-superuser. */ files, /* Total file nodes. */ ffree; /* Free file nodes. */ - gint block_size; /* Size of a block in bytes. */ + guint32 block_size; /* Size of a block in bytes. */ }; #define glibtop_get_fsusage(fsusage,disk) glibtop_get_fsusage_l(glibtop_global_server, fsusage, disk) diff --git a/lib/sysdeps.c b/lib/sysdeps.c index 5bc3e6f1..88f7a2fe 100644 --- a/lib/sysdeps.c +++ b/lib/sysdeps.c @@ -178,5 +178,5 @@ glibtop_init_func_t _glibtop_init_hook_p [] = { void glibtop_get_sysdeps_r (glibtop *server, glibtop_sysdeps *buf) { - memcpy (buf, &server->sysdeps, sizeof (glibtop_sysdeps)); + *buf = server->sysdeps; } |