Make it compile.

This commit is contained in:
Martin Baulig
2000-11-20 16:43:59 +00:00
parent 6511ad348b
commit 7a7e7d1bc3
3 changed files with 11 additions and 10 deletions

View File

@@ -43,14 +43,15 @@ glibtop_init_interface_names_s (glibtop *server)
/* Provides network statistics. */ /* Provides network statistics. */
char *
glibtop_get_interface_names_s (glibtop *server, glibtop_interface_names *buf, glibtop_interface *
unsigned interface, unsigned number, glibtop_get_interface_names_s (glibtop *server, glibtop_array *array,
unsigned instance, unsigned strategy) u_int64_t interface, u_int64_t number,
u_int64_t instance, u_int64_t strategy)
{ {
glibtop_init_s (&server, GLIBTOP_SYSDEPS_INTERFACE_NAMES, 0); glibtop_init_s (&server, GLIBTOP_SYSDEPS_INTERFACE_NAMES, 0);
memset (buf, 0, sizeof (glibtop_interface_names)); memset (array, 0, sizeof (glibtop_array));
return NULL; return NULL;
} }

View File

@@ -43,7 +43,8 @@ glibtop_init_netload_s (glibtop *server)
int int
glibtop_get_netload_s (glibtop *server, glibtop_netload *buf, glibtop_get_netload_s (glibtop *server, glibtop_netload *buf,
const char *interface) const char *interface, unsigned transport,
unsigned protocol)
{ {
memset (buf, 0, sizeof (glibtop_netload)); memset (buf, 0, sizeof (glibtop_netload));

View File

@@ -42,10 +42,9 @@ glibtop_init_proc_args_s (glibtop *server)
/* Provides detailed information about a process. */ /* Provides detailed information about a process. */
char * char **
glibtop_get_proc_args_s (glibtop *server, glibtop_proc_args *buf, glibtop_get_proc_args_s (glibtop *server, glibtop_array *array, pid_t pid)
pid_t pid, unsigned max_len)
{ {
memset (buf, 0, sizeof (glibtop_proc_args)); memset (array, 0, sizeof (glibtop_array));
return NULL; return NULL;
} }