From 0a5e33cc27f62a255745c122dfffa7bc9b04e59b Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 13 May 2005 02:10:51 +0000 Subject: [PATCH] fix connection ports --- src/os/hpux/hpux_sigar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/hpux/hpux_sigar.c b/src/os/hpux/hpux_sigar.c index b319bdff..84462284 100644 --- a/src/os/hpux/hpux_sigar.c +++ b/src/os/hpux/hpux_sigar.c @@ -903,8 +903,8 @@ static int net_conn_get_tcp(sigar_t *sigar, break; } - conn.local_port = entry->LocalPort; - conn.remote_port = entry->RemPort; + conn.local_port = (unsigned short)entry->LocalPort; + conn.remote_port = (unsigned short)entry->RemPort; conn.type = SIGAR_NETCONN_TCP; sigar_inet_ntoa(sigar, entry->LocalAddress,