format nit

This commit is contained in:
Doug MacEachern 2007-04-06 13:39:25 +00:00
parent f6f395d68e
commit 66fe4fee09
2 changed files with 8 additions and 6 deletions

View File

@ -686,9 +686,10 @@ sigar_net_stat_port_get(sigar_t *sigar,
unsigned long port);
SIGAR_DECLARE(int)sigar_net_listen_address_get(sigar_t *sigar,
unsigned long port,
sigar_net_address_t *address);
SIGAR_DECLARE(int)
sigar_net_listen_address_get(sigar_t *sigar,
unsigned long port,
sigar_net_address_t *address);
SIGAR_DECLARE(const char *)sigar_net_connection_type_get(int type);

View File

@ -859,9 +859,10 @@ static void sigar_net_listen_address_add(sigar_t *sigar,
sizeof(conn->local_address));
}
SIGAR_DECLARE(int)sigar_net_listen_address_get(sigar_t *sigar,
unsigned long port,
sigar_net_address_t *address)
SIGAR_DECLARE(int)
sigar_net_listen_address_get(sigar_t *sigar,
unsigned long port,
sigar_net_address_t *address)
{
if (!sigar->net_listen ||
sigar_cache_find(sigar->net_listen, port))