Skip to content

Commit

Permalink
aarp.c: one more thing -- both macro params should get parens
Browse files Browse the repository at this point in the history
  • Loading branch information
sauclovian committed Jul 31, 2023
1 parent a2aa07d commit f7c5661
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sys/netatalk/aarp.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: aarp.c,v 1.45 2023/07/31 01:23:04 dholland Exp $ */
/* $NetBSD: aarp.c,v 1.46 2023/07/31 01:24:36 dholland Exp $ */

/*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
Expand Down Expand Up @@ -27,7 +27,7 @@
*/

#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.45 2023/07/31 01:23:04 dholland Exp $");
__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.46 2023/07/31 01:24:36 dholland Exp $");

#include "opt_mbuftrace.h"
#include "opt_atalk.h"
Expand Down Expand Up @@ -73,14 +73,14 @@ struct aarptab aarptab[AARPTAB_SIZE];
#define AARPTAB_LOOK(aat, addr) { \
int n; \
\
aat = &aarptab[AARPTAB_HASH(addr) * AARPTAB_BSIZ]; \
for (n = 0; n < AARPTAB_BSIZ; n++, aat++) { \
if (aat->aat_ataddr.s_net == (addr).s_net && \
aat->aat_ataddr.s_node == (addr).s_node) \
(aat) = &aarptab[AARPTAB_HASH(addr) * AARPTAB_BSIZ]; \
for (n = 0; n < AARPTAB_BSIZ; n++, (aat)++) { \
if ((aat)->aat_ataddr.s_net == (addr).s_net && \
(aat)->aat_ataddr.s_node == (addr).s_node) \
break; \
} \
if (n >= AARPTAB_BSIZ) { \
aat = 0; \
(aat) = 0; \
} \
}

Expand Down

0 comments on commit f7c5661

Please sign in to comment.