[v3,10/14] examples: fix whitespace
Checks
Commit Message
Add space after keywords.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
examples/cmdline/parse_obj_list.c | 2 +-
examples/ip_reassembly/main.c | 2 +-
examples/multi_process/symmetric_mp/main.c | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
@@ -42,7 +42,7 @@ parse_obj_list(cmdline_parse_token_hdr_t *tk, const char *buf, void *res,
if (res && ressize < sizeof(struct object *))
return -1;
- while(!cmdline_isendoftoken(buf[token_len]))
+ while (!cmdline_isendoftoken(buf[token_len]))
token_len++;
SLIST_FOREACH(o, tkd->list, next) {
@@ -300,7 +300,7 @@ send_single_packet(struct rte_mbuf *m, uint16_t port)
TX_LCORE_STAT_UPDATE(&qconf->tx_stat, queue, 1);
txmb->m_table[txmb->head] = m;
- if(++txmb->head == len)
+ if (++txmb->head == len)
txmb->head = 0;
return 0;
@@ -156,7 +156,7 @@ smp_parse_args(int argc, char **argv)
/* get the port numbers from the port mask */
RTE_ETH_FOREACH_DEV(i)
- if(port_mask & (1 << i))
+ if (port_mask & (1 << i))
ports[num_ports++] = (uint8_t)i;
ret = optind-1;
@@ -470,8 +470,8 @@ main(int argc, char **argv)
/* Primary instance initialized. 8< */
if (num_ports & 1)
rte_exit(EXIT_FAILURE, "Application must use an even number of ports\n");
- for(i = 0; i < num_ports; i++){
- if(proc_type == RTE_PROC_PRIMARY)
+ for (i = 0; i < num_ports; i++) {
+ if (proc_type == RTE_PROC_PRIMARY)
if (smp_port_init(ports[i], mp, (uint16_t)num_procs) < 0)
rte_exit(EXIT_FAILURE, "Error initialising ports\n");
}