X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-parse.c;h=312eaaaaff1842d9583a7892313a088a533de5f7;hb=d2805da2cb2256e9e2efc5074fbe8df55408213f;hp=405008c67e8b01d333882937be85cbeebc65a39c;hpb=a154533795474bd8d13a2a935c4b6719215d6907;p=openvswitch diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index 405008c6..312eaaaa 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -270,12 +270,12 @@ str_to_action(char *str, struct ofpbuf *b) put_output_action(b, str_to_u32(arg)); } else if (!strcasecmp(act, "enqueue")) { char *sp = NULL; - char *port = strtok_r(arg, ":q", &sp); + char *port_s = strtok_r(arg, ":q", &sp); char *queue = strtok_r(NULL, "", &sp); - if (port == NULL || queue == NULL) { + if (port_s == NULL || queue == NULL) { ovs_fatal(0, "\"enqueue\" syntax is \"enqueue:PORT:QUEUE\""); } - put_enqueue_action(b, str_to_u32(port), str_to_u32(queue)); + put_enqueue_action(b, str_to_u32(port_s), str_to_u32(queue)); } else if (!strcasecmp(act, "drop")) { /* A drop action in OpenFlow occurs by just not setting * an action. */