The style standard is to use blank after keywords.
I.e "if (" not "if("

Signed-off-by: Stephen Hemminger <step...@networkplumber.org>
---
 lib/cmdline/cmdline_rdline.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/cmdline/cmdline_rdline.c b/lib/cmdline/cmdline_rdline.c
index 5cf723a0126a..1ceba6b0b8d4 100644
--- a/lib/cmdline/cmdline_rdline.c
+++ b/lib/cmdline/cmdline_rdline.c
@@ -301,7 +301,7 @@ rdline_char_in(struct rdline *rdl, char c)
                /* delete 1 char from the left */
                case CMDLINE_KEY_BKSPACE:
                case CMDLINE_KEY_BKSPACE2:
-                       if(!cirbuf_del_tail_safe(&rdl->left)) {
+                       if (!cirbuf_del_tail_safe(&rdl->left)) {
                                rdline_puts(rdl, vt100_bs);
                                display_right_buffer(rdl, 1);
                        }
@@ -354,7 +354,7 @@ rdline_char_in(struct rdline *rdl, char c)
                /* paste contents of kill buffer to the left side of caret */
                case CMDLINE_KEY_CTRL_Y:
                        i=0;
-                       while(CIRBUF_GET_LEN(&rdl->right) + 
CIRBUF_GET_LEN(&rdl->left) <
+                       while (CIRBUF_GET_LEN(&rdl->right) + 
CIRBUF_GET_LEN(&rdl->left) <
                              RDLINE_BUF_SIZE &&
                              i < rdl->kill_size) {
                                cirbuf_add_tail(&rdl->left, rdl->kill_buf[i]);
@@ -403,10 +403,10 @@ rdline_char_in(struct rdline *rdl, char c)
                                tmp_size = strnlen(tmp_buf, sizeof(tmp_buf));
                                /* add chars */
                                if (ret == RDLINE_RES_COMPLETE) {
-                                       i=0;
-                                       while(CIRBUF_GET_LEN(&rdl->right) + 
CIRBUF_GET_LEN(&rdl->left) <
-                                             RDLINE_BUF_SIZE &&
-                                             i < tmp_size) {
+                                       i = 0;
+                                       while (CIRBUF_GET_LEN(&rdl->right)
+                                              + CIRBUF_GET_LEN(&rdl->left) < 
RDLINE_BUF_SIZE &&
+                                              i < tmp_size) {
                                                cirbuf_add_tail(&rdl->left, 
tmp_buf[i]);
                                                rdl->write_char(rdl, 
tmp_buf[i]);
                                                i++;
-- 
2.39.0

Reply via email to