size param to perfstat functions is size_t not int

This commit is contained in:
Doug MacEachern 2004-07-19 20:30:06 +00:00
parent fd0b920b0d
commit 3ae523990f
2 changed files with 4 additions and 4 deletions

View File

@ -6,14 +6,14 @@
* desired_number Must be set to 1."
* so we just hardcode that in our wrapper.
*/
int sigar_perfstat_cpu_total(perfstat_cpu_total_t *cpu_total, int size)
int sigar_perfstat_cpu_total(perfstat_cpu_total_t *cpu_total, size_t size)
{
return perfstat_cpu_total(NULL, cpu_total, size, 1);
}
int sigar_perfstat_cpu(perfstat_id_t *id,
perfstat_cpu_t *cpu,
int size, int num)
size_t size, int num)
{
return perfstat_cpu(id, cpu, size, num);
}

View File

@ -27,11 +27,11 @@ typedef int (*vminfo_func_t) (void *, int, int);
typedef int (*proc_fd_func_t) (sigar_t *, sigar_pid_t, sigar_proc_fd_t *);
typedef int (*perfstat_cpu_total_func_t)(perfstat_cpu_total_t *, int);
typedef int (*perfstat_cpu_total_func_t)(perfstat_cpu_total_t *, size_t);
typedef int (*perfstat_cpu_func_t)(perfstat_id_t *,
perfstat_cpu_t *,
int, int);
size_t, int);
struct sigar_t {
SIGAR_T_BASE;