From 13f57bf91423019de4ad741f877a3265beefbca9 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 16 Mar 2008 02:43:08 +0000 Subject: [PATCH] rid warnings on netbsd --- src/os/darwin/darwin_sigar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 328b256f..56f52738 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -2524,7 +2524,7 @@ static int net_connection_get(sigar_net_connection_walker_t *walker, int proto) prev = head = (struct inpcb *)&CIRCLEQ_FIRST(&((struct inpcbtable *)offset)->inpt_queue); - next = CIRCLEQ_FIRST(&table.inpt_queue); + next = (struct inpcb *)CIRCLEQ_FIRST(&table.inpt_queue); while (next != head) { struct inpcb inpcb; @@ -2533,7 +2533,7 @@ static int net_connection_get(sigar_net_connection_walker_t *walker, int proto) status = kread(sigar, &inpcb, sizeof(inpcb), (long)next); prev = next; - next = CIRCLEQ_NEXT(&inpcb, inp_queue); + next = (struct inpcb *)CIRCLEQ_NEXT(&inpcb, inp_queue); kread(sigar, &socket, sizeof(socket), (u_long)inpcb.inp_socket);