diff options
Diffstat (limited to 'payloads/libpayload/curses/menu')
-rw-r--r-- | payloads/libpayload/curses/menu/m_attribs.c | 2 | ||||
-rw-r--r-- | payloads/libpayload/curses/menu/m_driver.c | 2 |
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); |