diff --git a/sysdeps/common/ChangeLog b/sysdeps/common/ChangeLog index aeba1c4e..b1561c03 100644 --- a/sysdeps/common/ChangeLog +++ b/sysdeps/common/ChangeLog @@ -1,3 +1,8 @@ +2005-02-15 Benoît Dejean + + * fsusage.c: (_glibtop_get_fsusage_read_write): Fixed G_GNUC attribute usage. + Replaced macro by inline function. + 2005-01-18 Benoît Dejean * mountlist.c: (ignore_mount_entry): Re-worked with bsearch. diff --git a/sysdeps/common/fsusage.c b/sysdeps/common/fsusage.c index 5e800ff8..058bdba8 100644 --- a/sysdeps/common/fsusage.c +++ b/sysdeps/common/fsusage.c @@ -126,13 +126,19 @@ static const unsigned long _glibtop_sysdeps_fsusage = */ #ifdef linux -void G_GNUC_INTERNAL +void _glibtop_linux_get_fsusage_read_write(glibtop *server, glibtop_fsusage *buf, - const char *path); + const char *path) G_GNUC_INTERNAL; + +static inline void +_glibtop_get_fsusage_read_write(glibtop *server, + glibtop_fsusage *buf, + const char *path) +{ + _glibtop_linux_get_fsusage_read_write(server, buf, path); +} -#define _glibtop_get_fsusage_read_write(S, B, P) \ - _glibtop_linux_get_fsusage_read_write(S, B, P) #else /* default fallback */ #warning glibtop_get_fsusage .read .write are not implemented. @@ -143,7 +149,7 @@ _glibtop_get_fsusage_read_write(glibtop *server, { /* NOOP */ } -#endif +#endif /* default fallback */ /* end _glibtop_get_fsusage_read_write */