Fixed. Patch by hua.zhang@sun.com. Closes #345813.

2006-06-24  Benoît Dejean  <benoit@placenet.org>

	* netlist.c: (glibtop_get_netlist_s):

	Fixed.
	Patch by hua.zhang@sun.com.
	Closes #345813.
This commit is contained in:
Benoît Dejean
2006-06-24 17:35:39 +00:00
committed by Benoît Dejean
parent 739e9cac4a
commit 1826be8ef6
2 changed files with 14 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
2006-06-24 Benoît Dejean <benoit@placenet.org>
* netlist.c: (glibtop_get_netlist_s):
Fixed.
Patch by hua.zhang@sun.com.
Closes #345813.
2006-06-24 Benoît Dejean <benoit@placenet.org>
* msg_limits.c: (glibtop_init_msg_limits_p),

View File

@@ -50,6 +50,10 @@ glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf)
devices = g_ptr_array_new();
kc = kstat_open();
if (kc == NULL) {
glibtop_warn_io_r(server, "kstat_open()");
return NULL;
}
for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next)
{
@@ -57,6 +61,7 @@ glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf)
continue;
g_ptr_array_add(devices, g_strdup(ksp->ks_name));
buf->number++;
}
kstat_close(kc);