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.
This commit is contained in:
committed by
Martin Baulig
parent
d18a6cf2ce
commit
902b6a8f16
@@ -70,9 +70,9 @@ glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf, pid_t pid)
|
||||
/* parse these two strings separately, skipping the leading "(". */
|
||||
|
||||
sscanf(tmp + 2, /* skip space after ')' too */
|
||||
"%*c %*d %*d %*d %*d %*d %lu %lu %lu %lu %lu "
|
||||
"%*c %*d %*d %*d %*d %*d %Lu %Lu %Lu %Lu %Lu "
|
||||
"%*d %*d %*d %*d %*d %*d %*u %*u %*d %*u "
|
||||
"%*u %*u %*u %*u %*u %lu %lu %*d %*d %*d %*d %lu",
|
||||
"%*u %*u %*u %*u %*u %Lu %Lu %*d %*d %*d %*d %Lu",
|
||||
&buf->k_flags, &buf->min_flt, &buf->cmin_flt,
|
||||
&buf->maj_flt, &buf->cmaj_flt, &buf->kstk_esp,
|
||||
&buf->kstk_eip, &buf->wchan);
|
||||
|
Reference in New Issue
Block a user