diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-04-26 10:11:10 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-05-02 07:59:14 +0000 |
commit | 00877386eec0e55d102864197fc29117f1159cb9 (patch) | |
tree | d9850b8757ccce87181b7ee6eecdaa2b104b5b63 /payloads/libpayload/curses/form | |
parent | 12f345d67161d4f28c1ead2ca950ba1f57e44035 (diff) |
payloads/libpayload: Add spaces around '=='
Change-Id: Ie1da925aceb01c2d21b472bf171000803004578f
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/25856
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'payloads/libpayload/curses/form')
-rw-r--r-- | payloads/libpayload/curses/form/fld_attr.c | 2 | ||||
-rw-r--r-- | payloads/libpayload/curses/form/frm_driver.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/payloads/libpayload/curses/form/fld_attr.c b/payloads/libpayload/curses/form/fld_attr.c index 0112f009ec..42642efc19 100644 --- a/payloads/libpayload/curses/form/fld_attr.c +++ b/payloads/libpayload/curses/form/fld_attr.c @@ -43,7 +43,7 @@ NCURSES_IMPEXP int NCURSES_API set_field_ ## name (FIELD * field, chtype attr)\ {\ int res = E_BAD_ARGUMENT;\ T((T_CALLED("set_field_" #name "(%p,%s)"), field, _traceattr(attr)));\ - if ( attr==A_NORMAL || ((attr & A_ATTRIBUTES)==attr) )\ + if ( attr == A_NORMAL || ((attr & A_ATTRIBUTES) == attr) )\ {\ Normalize_Field( field );\ if (field != 0) \ diff --git a/payloads/libpayload/curses/form/frm_driver.c b/payloads/libpayload/curses/form/frm_driver.c index e0892bf8d4..e058d198d7 100644 --- a/payloads/libpayload/curses/form/frm_driver.c +++ b/payloads/libpayload/curses/form/frm_driver.c @@ -200,7 +200,7 @@ static int FE_Delete_Previous(FORM *); /* Logic to determine whether or not we are on the first position in the current field */ #define First_Position_In_Current_Field(form) \ - (((form)->currow==0) && ((form)->curcol==0)) + (((form)->currow == 0) && ((form)->curcol == 0)) #define Minimum(a,b) (((a)<=(b)) ? (a) : (b)) #define Maximum(a,b) (((a)>=(b)) ? (a) : (b)) @@ -2586,7 +2586,7 @@ FE_New_Line(FORM *form) { if (Last_Row && !Field_Grown(field, 1)) { - /* N.B.: due to the logic in the 'if', LastRow==TRUE + /* N.B.: due to the logic in the 'if', LastRow == TRUE means here that the field is growable and not a single-line field */ returnCode(E_SYSTEM_ERROR); |