Now using correct features' parameter in call to glibtop_init_s'.

This commit is contained in:
Martin Baulig
1998-08-07 12:38:40 +00:00
parent d72da1bb2f
commit e7c77a85e9
16 changed files with 16 additions and 16 deletions

View File

@@ -45,7 +45,7 @@ glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
{ {
union table tbl; union table tbl;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_CPU, 0);
memset (buf, 0, sizeof (glibtop_cpu)); memset (buf, 0, sizeof (glibtop_cpu));

View File

@@ -43,7 +43,7 @@ glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf)
{ {
union table tbl; union table tbl;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_LOADAVG, 0);
memset (buf, 0, sizeof (glibtop_loadavg)); memset (buf, 0, sizeof (glibtop_loadavg));

View File

@@ -46,7 +46,7 @@ glibtop_get_mem_s (glibtop *server, glibtop_mem *buf)
{ {
union table tbl; union table tbl;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_MEM, 0);
memset (buf, 0, sizeof (glibtop_mem)); memset (buf, 0, sizeof (glibtop_mem));

View File

@@ -45,7 +45,7 @@ glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf)
{ {
struct msginfo msginfo; struct msginfo msginfo;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_MSG_LIMITS, 0);
memset (buf, 0, sizeof (glibtop_msg_limits)); memset (buf, 0, sizeof (glibtop_msg_limits));

View File

@@ -47,7 +47,7 @@ glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf,
{ {
union table tbl; union table tbl;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_KERNEL, 0);
memset (buf, 0, sizeof (glibtop_proc_kernel)); memset (buf, 0, sizeof (glibtop_proc_kernel));

View File

@@ -59,7 +59,7 @@ glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf)
union table tbl; union table tbl;
unsigned *pids_chain; unsigned *pids_chain;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROCLIST, 0);
memset (buf, 0, sizeof (glibtop_proclist)); memset (buf, 0, sizeof (glibtop_proclist));

View File

@@ -46,7 +46,7 @@ glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf,
{ {
union table tbl; union table tbl;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_MEM, 0);
memset (buf, 0, sizeof (glibtop_proc_mem)); memset (buf, 0, sizeof (glibtop_proc_mem));

View File

@@ -47,7 +47,7 @@ glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
{ {
union table tbl; union table tbl;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_SEGMENT, 0);
memset (buf, 0, sizeof (glibtop_proc_segment)); memset (buf, 0, sizeof (glibtop_proc_segment));

View File

@@ -45,7 +45,7 @@ glibtop_get_proc_signal_s (glibtop *server, glibtop_proc_signal *buf,
{ {
union table tbl; union table tbl;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_SIGNAL, 0);
memset (buf, 0, sizeof (glibtop_proc_signal)); memset (buf, 0, sizeof (glibtop_proc_signal));

View File

@@ -49,7 +49,7 @@ glibtop_get_proc_state_s (glibtop *server, glibtop_proc_state *buf,
{ 'R', 'S', 'D', 'Z', 'T', 'W', '.' }; { 'R', 'S', 'D', 'Z', 'T', 'W', '.' };
unsigned state; unsigned state;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_STATE, 0);
memset (buf, 0, sizeof (glibtop_proc_state)); memset (buf, 0, sizeof (glibtop_proc_state));

View File

@@ -47,7 +47,7 @@ glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf,
{ {
union table tbl; union table tbl;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_TIME, 0);
memset (buf, 0, sizeof (glibtop_proc_time)); memset (buf, 0, sizeof (glibtop_proc_time));

View File

@@ -52,7 +52,7 @@ glibtop_get_proc_uid_s (glibtop *server, glibtop_proc_uid *buf,
union table tbl; union table tbl;
long def_priority, priority, nice; long def_priority, priority, nice;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_UID, 0);
memset (buf, 0, sizeof (glibtop_proc_uid)); memset (buf, 0, sizeof (glibtop_proc_uid));

View File

@@ -62,7 +62,7 @@ glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
struct seminfo seminfo; struct seminfo seminfo;
union semun arg; union semun arg;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_SEM_LIMITS, 0);
memset (buf, 0, sizeof (glibtop_sem_limits)); memset (buf, 0, sizeof (glibtop_sem_limits));

View File

@@ -44,7 +44,7 @@ glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf)
{ {
struct shminfo shminfo; struct shminfo shminfo;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_SHM_LIMITS, 0);
memset (buf, 0, sizeof (glibtop_shm_limits)); memset (buf, 0, sizeof (glibtop_shm_limits));

View File

@@ -45,7 +45,7 @@ glibtop_get_swap_s (glibtop *server, glibtop_swap *buf)
{ {
union table tbl; union table tbl;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_SWAP, 0);
memset (buf, 0, sizeof (glibtop_swap)); memset (buf, 0, sizeof (glibtop_swap));

View File

@@ -43,7 +43,7 @@ glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf)
{ {
union table tbl; union table tbl;
glibtop_init_s (&server, 0, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_UPTIME, 0);
memset (buf, 0, sizeof (glibtop_uptime)); memset (buf, 0, sizeof (glibtop_uptime));