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.
This commit is contained in:
Benoît Dejean
2004-06-12 15:39:31 +00:00
parent f03e2d3c11
commit d5b8a71e5b
3 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
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.

View File

@@ -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)

View File

@@ -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;
}