summaryrefslogtreecommitdiff
path: root/sysdeps/freebsd/procsegment.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-08-24 19:55:38 +0000
committerMartin Baulig <martin@src.gnome.org>1998-08-24 19:55:38 +0000
commit9d0aa0fdc1e093aede5a77c798c199f9f47c27f7 (patch)
treec043aa6beba21313c03f3ad4df57b37c0fba8d7c /sysdeps/freebsd/procsegment.c
parentfb552b8e313468a31ac6580491e3ff7bea8e5fae (diff)
downloadlibgtop-9d0aa0fdc1e093aede5a77c798c199f9f47c27f7.tar.gz
Using correct `(1 << GLIBTOP_SYSDPES_*)'. Removed `const' from sysctl ()
1998-08-24 Martin Baulig <martin@home-of-linux.org> * *.c (glibtop_init_p): Using correct `(1 << GLIBTOP_SYSDPES_*)'. * cpu.c, mem.c: Removed `const' from sysctl () constants to keep compiler happy. * procmem.c: Added missing call to `glibtop_init_p'. * prockernel.c: Casting `nwchan' to `unsigned long' since this normally has the same size than a pointer. Well, is there a FreeBSD for 64bit architectures ?
Diffstat (limited to 'sysdeps/freebsd/procsegment.c')
-rw-r--r--sysdeps/freebsd/procsegment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/freebsd/procsegment.c b/sysdeps/freebsd/procsegment.c
index 8ad08969..0db0095a 100644
--- a/sysdeps/freebsd/procsegment.c
+++ b/sysdeps/freebsd/procsegment.c
@@ -49,7 +49,7 @@ glibtop_get_proc_segment_p (glibtop *server,
struct kinfo_proc *pinfo;
int *count;
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_SEGMENT, 0);
+ glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_PROC_SEGMENT), 0);
memset (buf, 0, sizeof (glibtop_proc_segment));