diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog index 8641029e..3299bcc2 100644 --- a/sysdeps/linux/ChangeLog +++ b/sysdeps/linux/ChangeLog @@ -1,3 +1,8 @@ +2005-01-16 Benoît Dejean + + * glibtop_private.c: (skip_token): + * glibtop_private.h: Uninlined. + 2005-01-13 Benoît Dejean * fsusage.c: (get_partition), (get_sys_path), (linux_2_6_0): Reworked. diff --git a/sysdeps/linux/glibtop_private.c b/sysdeps/linux/glibtop_private.c index 2faddb03..707b2ba1 100644 --- a/sysdeps/linux/glibtop_private.c +++ b/sysdeps/linux/glibtop_private.c @@ -32,6 +32,16 @@ get_scaled(const char *buffer, const char *key) } +char * +skip_token (const char *p) +{ + p = next_token(p); + while (*p && !isspace(*p)) p++; + p = next_token(p); + return (char *)p; +} + + /* * Read functions */ diff --git a/sysdeps/linux/glibtop_private.h b/sysdeps/linux/glibtop_private.h index 66c426b2..7e4369b3 100644 --- a/sysdeps/linux/glibtop_private.h +++ b/sysdeps/linux/glibtop_private.h @@ -40,14 +40,8 @@ next_token(const char *p) return (char*) p; } -static inline char * -skip_token (const char *p) -{ - p = next_token(p); - while (*p && !isspace(*p)) p++; - p = next_token(p); - return (char *)p; -} +char * G_GNUC_INTERNAL +skip_token (const char *p); static inline char * skip_multiple_token (const char *p, size_t count)