odp-util: Reuse standard delimiters.
authorJoe Stringer <joestringer@nicira.com>
Fri, 5 Dec 2014 22:07:19 +0000 (14:07 -0800)
committerJoe Stringer <joestringer@nicira.com>
Wed, 7 Jan 2015 17:57:29 +0000 (09:57 -0800)
Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/odp-util.c

index d52c172..cb1775e 100644 (file)
@@ -2752,7 +2752,7 @@ parse_odp_key_mask_attr(const char *s, const struct simap *port_names,
         for (;;) {
             int retval;
 
-            s += strspn(s, ", \t\r\n");
+            s += strspn(s, delimiters);
             if (!*s) {
                 return -EINVAL;
             } else if (*s == ')') {