Skip to content
Snippets Groups Projects
Commit d084d746 authored by Maxim Menshikov's avatar Maxim Menshikov
Browse files

Fix build errors

parent e83cd788
No related branches found
No related tags found
No related merge requests found
......@@ -310,7 +310,7 @@ dscp_pcp_conv_result dscp_pcp2qosmap_simple(int pcp, char *str, size_t len)
* Map DSCP [0, 63] to PCP passed as argument,
* all other PCP->DSCP ranges are mapped to [255, 255] (unused)
*/
sprintf(s, "%s%d,%d", (i != 0) ? ",",
sprintf(s, "%s%d,%d", (i != 0) ? "," : "",
(pcp == i) ? 0 : 255,
(pcp == i) ? 63 : 255);
if ((strlen(str) + strlen(s)) >= len)
......@@ -332,10 +332,10 @@ int qos_apply_dscp_rules(void *agent)
int biggest_precedence = -1;
size_t i;
dbg("%s: finding DSCP rule with the highest precedence\n");
dbg("%s: finding DSCP rule with the highest precedence\n", __func__);
i = 0;
list_for_each_entry(r, &a->qos_rules, list) {
if (r->spr.precedence > biggest_dscp_precedence) {
if (r->spr.precedence > biggest_precedence) {
biggest_precedence = r->spr.precedence;
biggest_precedence_idx = i;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment