summaryrefslogtreecommitdiffstats
path: root/usr.bin/sockstat/sockstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sockstat/sockstat.c')
-rw-r--r--usr.bin/sockstat/sockstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c
index 63b9058..b7b22ec 100644
--- a/usr.bin/sockstat/sockstat.c
+++ b/usr.bin/sockstat/sockstat.c
@@ -470,9 +470,9 @@ display(void)
"LOCAL ADDRESS", "FOREIGN ADDRESS");
setpassent(1);
for (xf = xfiles, n = 0; n < nxfiles; ++n, ++xf) {
- hash = (int)((uintptr_t)xf->xf_data % HASHSIZE);
+ hash = (int)((uintptr_t)xf->xun_data.generic % HASHSIZE);
for (s = sockhash[hash]; s != NULL; s = s->next)
- if (s->socket == xf->xf_data)
+ if (s->socket == xf->xun_data.socket)
break;
if (s == NULL)
continue;
OpenPOWER on IntegriCloud