Small clean up.

* glibtop_server.h: Small clean up.
This commit is contained in:
Benoît Dejean
2004-06-08 08:41:53 +00:00
parent 95d39a87c8
commit 4fe066a430
2 changed files with 7 additions and 5 deletions

View File

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