diff --git a/src/qos.c b/src/qos.c index dd43f97714dcfdb51e57938df374996ca98dbb29..4c802b5626691fcf0c813401ee9acea68f28aa6d 100644 --- a/src/qos.c +++ b/src/qos.c @@ -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;