examples/ipsec-secgw: check status of getting ethdev info
[dpdk.git] / examples / load_balancer / config.c
index ebb521e..972c85c 100644 (file)
@@ -121,7 +121,7 @@ str_to_unsigned_array(
        int i, num_splits = 0;
 
        /* copy s so we don't modify original string */
-       snprintf(str, sizeof(str), "%s", s);
+       strlcpy(str, s, sizeof(str));
        num_splits = rte_strsplit(str, sizeof(str), splits, num_vals, separator);
 
        errno = 0;
@@ -328,7 +328,7 @@ parse_arg_w(const char *arg)
 
                errno = 0;
                lcore = strtoul(p, NULL, 0);
-               if ((errno != 0)) {
+               if (errno != 0) {
                        return -2;
                }