diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 20:23:41 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-26 00:00:16 +0100 |
commit | 97b5d752d7af198d0b2881b5a3b2e61f2b4921e5 (patch) | |
tree | 1b29dd2d5a576a130532ebd349e66994ae196853 /isisd/isis_dlpi.c | |
parent | *: remove unnecessary semicolon from switches (diff) | |
download | frr-97b5d752d7af198d0b2881b5a3b2e61f2b4921e5.tar.xz frr-97b5d752d7af198d0b2881b5a3b2e61f2b4921e5.zip |
*: use array_size instead of raw division
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'isisd/isis_dlpi.c')
-rw-r--r-- | isisd/isis_dlpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_dlpi.c b/isisd/isis_dlpi.c index 54a19ad23..148b43866 100644 --- a/isisd/isis_dlpi.c +++ b/isisd/isis_dlpi.c @@ -444,7 +444,7 @@ static int open_dlpi_dev(struct isis_circuit *circuit) struct strioctl sioc; pfil.Pf_Priority = 0; - pfil.Pf_FilterLen = sizeof(pf_filter) / sizeof(unsigned short); + pfil.Pf_FilterLen = array_size(pf_filter); memcpy(pfil.Pf_Filter, pf_filter, sizeof(pf_filter)); /* pfmod does not support transparent ioctls */ sioc.ic_cmd = PFIOCSETF; |