diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-12-19 20:56:01 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-12-19 20:56:01 +0000 |
commit | 7cc0e6a6b51025d08ec9c6a17b3f514ebaa80fdc (patch) | |
tree | 1fdb9f0bea4f3c69378031d733494d7f724e16f6 /get_load.c | |
parent | 57ef7c68cb375b3361ff5381b494ff52c1e77807 (diff) |
XFree86 4.3.99.902 (RC 2)xf86-4_3_99_902
Diffstat (limited to 'get_load.c')
-rw-r--r-- | get_load.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* $XConsortium: get_load.c /main/37 1996/03/09 09:38:04 kaleb $ */ -/* $XFree86: xc/programs/xload/get_load.c,v 1.20 2003/11/22 04:11:38 dawes Exp $ */ +/* $XFree86: xc/programs/xload/get_load.c,v 1.21 2003/12/19 02:05:40 dawes Exp $ */ /* Copyright (c) 1989 X Consortium @@ -270,7 +270,7 @@ void InitLoadPoint() /* SYSV386 version */ xload_error("cannot allocat space for", PROC_NAME); first_buf = (XtPointer) namelist[2].n_value; - last_buf = first_buf + v.v_buf * sizeof(struct buf); + last_buf = (char *)first_buf + v.v_buf * sizeof(struct buf); } /* ARGSUSED */ @@ -296,7 +296,7 @@ XtPointer call_data; /* pointer to (double) return value */ (p[i].p_stat == SIDL) || (p[i].p_stat == SXBRK) || (p[i].p_stat == SSLEEP && (p[i].p_pri < PZERO) && - (p[i].p_wchan >= first_buf) && (p[i].p_wchan < last_buf))) + (p[i].p_wchan >= (char *)first_buf) && (p[i].p_wchan < (char *)last_buf))) nproc++; /* update the load average using a decay filter */ |