summaryrefslogtreecommitdiffstats
path: root/payloads/libpayload/curses
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/curses')
-rw-r--r--payloads/libpayload/curses/form/fld_attr.c2
-rw-r--r--payloads/libpayload/curses/form/frm_driver.c4
-rw-r--r--payloads/libpayload/curses/menu/m_attribs.c2
-rw-r--r--payloads/libpayload/curses/menu/m_driver.c2
-rw-r--r--payloads/libpayload/curses/pdcurses-backend/pdckbd.c4
5 files changed, 7 insertions, 7 deletions
diff --git a/payloads/libpayload/curses/form/fld_attr.c b/payloads/libpayload/curses/form/fld_attr.c
index 0112f009ecd4..42642efc1978 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 e0892bf8d4f2..e058d198d74e 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);
diff --git a/payloads/libpayload/curses/menu/m_attribs.c b/payloads/libpayload/curses/menu/m_attribs.c
index 1ea5c7a90468..df511f4fb0e7 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 deeff4710c08..b2a714556dbd 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);
diff --git a/payloads/libpayload/curses/pdcurses-backend/pdckbd.c b/payloads/libpayload/curses/pdcurses-backend/pdckbd.c
index c872262fd36b..6b5b7eade1d5 100644
--- a/payloads/libpayload/curses/pdcurses-backend/pdckbd.c
+++ b/payloads/libpayload/curses/pdcurses-backend/pdckbd.c
@@ -149,14 +149,14 @@ int PDC_get_key(void)
#if IS_ENABLED(CONFIG_LP_PC_KEYBOARD)
if ((curses_flags & F_ENABLE_CONSOLE) &&
- keyboard_havechar() && (c==0)) {
+ keyboard_havechar() && (c == 0)) {
c = keyboard_getchar();
}
#endif
#if IS_ENABLED(CONFIG_LP_SERIAL_CONSOLE)
if ((curses_flags & F_ENABLE_SERIAL) &&
- serial_havechar() && (c==0)) {
+ serial_havechar() && (c == 0)) {
c = cook_serial(serial_getchar());
}
#endif