use protocol param in proc_port

This commit is contained in:
Doug MacEachern 2005-03-16 03:54:05 +00:00
parent 0440707db7
commit cd6df9317e
1 changed files with 1 additions and 2 deletions

View File

@ -1743,8 +1743,7 @@ int sigar_proc_port_get(sigar_t *sigar, int protocol,
*pid = 0; *pid = 0;
status = sigar_net_connection_get(sigar, &netconn, port, status = sigar_net_connection_get(sigar, &netconn, port,
SIGAR_NETCONN_SERVER| SIGAR_NETCONN_SERVER|protocol);
SIGAR_NETCONN_TCP|SIGAR_NETCONN_UDP);
if (status != SIGAR_OK) { if (status != SIGAR_OK) {
return status; return status;