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

Fix indentation

parent 39e80d19
No related branches found
No related tags found
No related merge requests found
Pipeline #115153 failed
......@@ -139,12 +139,12 @@ dscp_pcp_conv_result dscp_pcp2qosmap(uint8_t dscp_pcp[64],
dscp_pcp_conv_result rc = DSCP_PCP_CONV_RESULT_OK;
/* pcp -> dscp usage table */
/* pcp -> dscp usage table */
uint8_t pcp_dscp[PCP_COUNT][DSCP_PCP_MAX];
/* Minimal and maximal DSCPs for PCP */
/* Minimal and maximal DSCPs for PCP */
uint8_t pcp_dscp_min[PCP_COUNT] = { DSCP_NEUTRAL };
uint8_t pcp_dscp_max[PCP_COUNT] = { DSCP_NEUTRAL };
/* DSCP exceptions */
/* DSCP exceptions */
uint8_t dscp_up[DSCP_UP_EXC_MAX][2];
size_t total_du = 0;
size_t i, j;
......@@ -152,7 +152,7 @@ dscp_pcp_conv_result dscp_pcp2qosmap(uint8_t dscp_pcp[64],
memset(pcp_dscp, 0, sizeof(pcp_dscp));
/* Convert DSCP->PCP to PCP->DSCP usage table */
/* Convert DSCP->PCP to PCP->DSCP usage table */
for (i = 0; i < DSCP_PCP_MAX; ++i) {
uint8_t pcp = dscp_pcp[i];
uint8_t dscp = i;
......@@ -250,18 +250,18 @@ dscp_pcp_conv_result dscp_pcp2qosmap(uint8_t dscp_pcp[64],
rc != DSCP_PCP_CONV_RESULT_OK_TOO_MANY_EXC)
return rc;
/* Write out PCP_x_DSCP_min, PCP_x_DSCP_max */
/* Write out PCP_x_DSCP_min, PCP_x_DSCP_max */
for (i = 0; i < PCP_COUNT; ++i) {
char pair[TMP_BUF_LEN];
/*
* No need for bounds check - result length can't exceed the buffer
* length
*/
/*
* No need for bounds check - result length can't exceed the buffer
* length
*/
sprintf(pair, "%s%d,%d",
(i != 0 || total_du != 0) ? "," : "",
pcp_dscp_min[i],
pcp_dscp_max[i]);
(i != 0 || total_du != 0) ? "," : "",
pcp_dscp_min[i],
pcp_dscp_max[i]);
final_len += strlen(pair);
if (final_len > qos_map_len) {
rc = DSCP_PCP_CONV_RESULT_TOO_LONG;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment