From 26d9d5fa4fee2aafdffdba7ef4fad185b59e4496 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 1 Jul 2006 18:36:42 +0000 Subject: [PATCH] minor cleanup --- src/os/hpux/hpux_sigar.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/os/hpux/hpux_sigar.c b/src/os/hpux/hpux_sigar.c index fe5668e3..111a3247 100644 --- a/src/os/hpux/hpux_sigar.c +++ b/src/os/hpux/hpux_sigar.c @@ -975,11 +975,9 @@ static int net_conn_get_tcp(sigar_net_connection_walker_t *walker) int sigar_net_connection_walk(sigar_net_connection_walker_t *walker) { - sigar_t *sigar = walker->sigar; - int flags = walker->flags; int status; - if (flags & SIGAR_NETCONN_TCP) { + if (walker->flags & SIGAR_NETCONN_TCP) { status = net_conn_get_tcp(walker); if (status != SIGAR_OK) { @@ -987,7 +985,7 @@ int sigar_net_connection_walk(sigar_net_connection_walker_t *walker) } } - if (flags & SIGAR_NETCONN_UDP) { + if (walker->flags & SIGAR_NETCONN_UDP) { status = net_conn_get_udp(walker); if (status != SIGAR_OK) {