]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
filter/HWHDR: remove redundant sizeof(char)
authorJan Engelhardt <jengelh@medozas.de>
Fri, 5 Nov 2010 18:33:40 +0000 (19:33 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Fri, 5 Nov 2010 18:33:40 +0000 (19:33 +0100)
It is 1 by definition.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
filter/ulogd_filter_HWHDR.c

index 0e3f627bedb5586075133e6e56d3df22f31a5880..3b713a500c127582677d22ec0d2a9320a11d4665 100644 (file)
@@ -118,7 +118,7 @@ static int parse_mac2str(struct ulogd_key *ret, unsigned char *mac,
        char *buf_cur;
        int i;
 
-       if (len/sizeof(char)*3 + 1 > HWADDR_LENGTH)
+       if (len * 3 + 1 > HWADDR_LENGTH)
                return ULOGD_IRET_ERR;
 
        if (len == 0)