summaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses/menu
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-04-26 10:11:10 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-05-02 07:59:14 +0000
commit00877386eec0e55d102864197fc29117f1159cb9 (patch)
treed9850b8757ccce87181b7ee6eecdaa2b104b5b63 /payloads/libpayload/curses/menu
parent12f345d67161d4f28c1ead2ca950ba1f57e44035 (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/menu')
-rw-r--r--payloads/libpayload/curses/menu/m_attribs.c2
-rw-r--r--payloads/libpayload/curses/menu/m_driver.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/curses/menu/m_attribs.c b/payloads/libpayload/curses/menu/m_attribs.c
index 1ea5c7a904..df511f4fb0 100644
--- a/payloads/libpayload/curses/menu/m_attribs.c
+++ b/payloads/libpayload/curses/menu/m_attribs.c
@@ -52,7 +52,7 @@ MODULE_ID("$Id: m_attribs.c,v 1.16 2010/01/23 21:16:54 tom Exp $")
NCURSES_IMPEXP int NCURSES_API set_menu_ ## name (MENU* menu, chtype attr) \
{\
T((T_CALLED("set_menu_" #name "(%p,%s)"), menu, _traceattr(attr))); \
- if (!(attr==A_NORMAL || (attr & A_ATTRIBUTES)==attr))\
+ if (!(attr == A_NORMAL || (attr & A_ATTRIBUTES) == attr))\
RETURN(E_BAD_ARGUMENT);\
if (menu && ( menu -> name != attr))\
{\
diff --git a/payloads/libpayload/curses/menu/m_driver.c b/payloads/libpayload/curses/menu/m_driver.c
index deeff4710c..b2a714556d 100644
--- a/payloads/libpayload/curses/menu/m_driver.c
+++ b/payloads/libpayload/curses/menu/m_driver.c
@@ -180,7 +180,7 @@ _nc_Match_Next_Character_In_Item_Name
or PREV_PATTERN scan this means, that there was no additional match.
If we searched with an expanded new pattern, we should never reach
this point, because if the expanded pattern matches also the actual
- item we will find it in the first attempt (passed==FALSE) and we
+ item we will find it in the first attempt (passed == FALSE) and we
will never cycle through the whole item array.
*/
assert(ch == 0 || ch == BS);