Small bug fixes.

This commit is contained in:
Martin Baulig
1998-08-17 15:11:57 +00:00
parent 513240b350
commit 616f4f4eaf
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ static inline char *
skip_line (const char *p) skip_line (const char *p)
{ {
while (*p != '\n') p++; while (*p != '\n') p++;
return (char *) p++; return (char *) ++p;
} }
static inline int static inline int

View File

@@ -69,7 +69,7 @@ glibtop_get_swap_s (glibtop *server, glibtop_swap *buf)
buffer [len] = '\0'; buffer [len] = '\0';
p = skip_line (buffer); p = skip_line (buffer);
p = skip_line (buffer); p = skip_line (p);
p = skip_token (p); /* "Swap:" */ p = skip_token (p); /* "Swap:" */
buf->total = strtoul (p, &p, 0); buf->total = strtoul (p, &p, 0);