summaryrefslogtreecommitdiffstats
path: root/isisd/isis_dlpi.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-25 20:23:41 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-02-26 00:00:16 +0100
commit97b5d752d7af198d0b2881b5a3b2e61f2b4921e5 (patch)
tree1b29dd2d5a576a130532ebd349e66994ae196853 /isisd/isis_dlpi.c
parent*: remove unnecessary semicolon from switches (diff)
downloadfrr-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.c2
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;