Add space after keywords.

Signed-off-by: Stephen Hemminger <step...@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(-)

diff --git a/examples/cmdline/parse_obj_list.c 
b/examples/cmdline/parse_obj_list.c
index 959bcd14527e..759072d39620 100644
--- a/examples/cmdline/parse_obj_list.c
+++ b/examples/cmdline/parse_obj_list.c
@@ -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) {
diff --git a/examples/ip_reassembly/main.c b/examples/ip_reassembly/main.c
index bd0b1d31decf..7e84b4944759 100644
--- a/examples/ip_reassembly/main.c
+++ b/examples/ip_reassembly/main.c
@@ -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;
diff --git a/examples/multi_process/symmetric_mp/main.c 
b/examples/multi_process/symmetric_mp/main.c
index 1ff85875dfdf..2f4441049253 100644
--- a/examples/multi_process/symmetric_mp/main.c
+++ b/examples/multi_process/symmetric_mp/main.c
@@ -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");
        }
-- 
2.35.1

Reply via email to