summaryrefslogtreecommitdiff
path: root/sysdeps/linux/procsegment.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-07-30 14:24:19 +0000
committerMartin Baulig <martin@src.gnome.org>1998-07-30 14:24:19 +0000
commit902b6a8f161002cc08158df798b3c6633c416943 (patch)
treec73f262b2ab7977bf6bb4150621c091203de5c26 /sysdeps/linux/procsegment.c
parentd18a6cf2cefda6c2417e24a08b9e29e95a82f881 (diff)
downloadlibgtop-902b6a8f161002cc08158df798b3c6633c416943.tar.gz
Using `u_int64_t' instead of `unsigned long' and `long' to avoid problems
1998-07-30 Martin Baulig <martin@home-of-linux.org> * include/glibtop/*.h: Using `u_int64_t' instead of `unsigned long' and `long' to avoid problems when client is on a 32bit system and the server on a 64bit system.
Diffstat (limited to 'sysdeps/linux/procsegment.c')
-rw-r--r--sysdeps/linux/procsegment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/linux/procsegment.c b/sysdeps/linux/procsegment.c
index 5300b5f8..00ab96ec 100644
--- a/sysdeps/linux/procsegment.c
+++ b/sysdeps/linux/procsegment.c
@@ -72,7 +72,7 @@ glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
sscanf(tmp + 2, /* skip space after ')' too */
"%*c %*d %*d %*d %*d %*d %*u %*u %*u %*u %*u "
"%*d %*d %*d %*d %*d %*d %*u %*u %*d %*u "
- "%*u %*u %lu %lu %lu", &buf->start_code,
+ "%*u %*u %Lu %Lu %Lu", &buf->start_code,
&buf->end_code, &buf->start_stack);
fclose (f);
@@ -91,7 +91,7 @@ glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
input [nread] = 0;
- sscanf (input, "%*d %*d %*d %ld %ld %ld %ld",
+ sscanf (input, "%*d %*d %*d %Lu %Lu %Lu %Lu",
&buf->trs, &buf->lrs, &buf->drs, &buf->dt);
fclose (f);