Skip to content

Commit 362e90f

Browse files
committed
Fix compile on OpenBSD.
1 parent e0780a2 commit 362e90f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/route.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ link_open(struct ctx *ctx)
193193
#elif defined(ROUTE_MSGFILTER)
194194
/* Convert the array into a bitmask. */
195195
msgfilter_mask = 0;
196-
for (i = 0; i < __arraycount(msgfilter); i++)
196+
for (i = 0; i < ARRAYCOUNT(msgfilter); i++)
197197
msgfilter_mask |= ROUTE_FILTER(msgfilter[i]);
198198
if (setsockopt(lctx->link_fd, PF_ROUTE, ROUTE_MSGFILTER,
199199
&msgfilter_mask, sizeof(msgfilter_mask)) == -1)

0 commit comments

Comments
 (0)