summaryrefslogtreecommitdiff
path: root/sysdeps/linux/glibtop_server.h
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2004-06-08 08:41:53 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2004-06-08 08:41:53 +0000
commit4fe066a4304a6baa3ca94149c69eeb96d0c75308 (patch)
treee73bced4f936210d2e2cce6e6f77cc284974f449 /sysdeps/linux/glibtop_server.h
parent95d39a87c85e5f2823022ac246cb9b406fe60a2b (diff)
downloadlibgtop-4fe066a4304a6baa3ca94149c69eeb96d0c75308.tar.gz
Small clean up.
* glibtop_server.h: Small clean up.
Diffstat (limited to 'sysdeps/linux/glibtop_server.h')
-rw-r--r--sysdeps/linux/glibtop_server.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sysdeps/linux/glibtop_server.h b/sysdeps/linux/glibtop_server.h
index b8bcbb49..e99af495 100644
--- a/sysdeps/linux/glibtop_server.h
+++ b/sysdeps/linux/glibtop_server.h
@@ -44,9 +44,7 @@ skip_token (const char *p)
static inline char *
skip_multiple_token (const char *p, size_t count)
{
- size_t i;
-
- for (i = 0; i < count; i++)
+ while(count--)
p = skip_token (p);
return (char *)p;
@@ -66,7 +64,7 @@ get_scaled(const char *buffer, const char *key)
char *next;
const size_t len = strlen(key);
unsigned long long value = 0;
-
+
if ((ptr = strstr(buffer, key)))
{
ptr += len;