From bbbbb27edcd12432f2b1a8b9d68db5b939b6f44c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Tue, 15 Feb 2005 09:51:59 +0000 Subject: [PATCH] Fixed G_GNUC attribute usage. Replaced macro by inline function. * fsusage.c: (_glibtop_get_fsusage_read_write): Fixed G_GNUC attribute usage. Replaced macro by inline function. --- sysdeps/common/ChangeLog | 5 +++++ sysdeps/common/fsusage.c | 16 +++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) 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 */