]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_pipeline/parser.c
examples/ipsec-gw: fix gcc 10 maybe-uninitialized warning
[dpdk.git] / examples / ip_pipeline / parser.c
index 3fffeb586730dde6223df67202adda5757697faf..fb0769fe370960ef3057169c9f59d72e7c47613c 100644 (file)
@@ -528,7 +528,7 @@ my_ether_aton(const char *a)
                if (errno != 0 || end == a || (end[0] != ':' && end[0] != 0))
                        return NULL;
                a = end + 1;
-       } while (++i != sizeof(o) / sizeof(o[0]) && end[0] != 0);
+       } while (++i != RTE_DIM(o) && end[0] != 0);
 
        /* Junk at the end of line */
        if (end[0] != 0)