fix connection ports

This commit is contained in:
Doug MacEachern 2005-05-13 02:10:51 +00:00
parent f019d2594b
commit 0a5e33cc27
1 changed files with 2 additions and 2 deletions

View File

@ -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,