mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-06 21:55:13 +00:00
apps/system/cle: Fix error when compiling with C89 compiler.
This commit is contained in:
parent
be3b314258
commit
c742373efc
1 changed files with 5 additions and 3 deletions
|
|
@ -655,7 +655,8 @@ static bool cle_opentext(FAR struct cle_s *priv, uint16_t pos,
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void cle_closetext(FAR struct cle_s *priv, uint16_t pos, uint16_t size)
|
||||
static void cle_closetext(FAR struct cle_s *priv, uint16_t pos,
|
||||
uint16_t size)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
@ -798,6 +799,9 @@ static int cle_editloop(FAR struct cle_s *priv)
|
|||
|
||||
for (; ; )
|
||||
{
|
||||
#if 1 /* Perhaps here should be a config switch */
|
||||
char state = 0;
|
||||
#endif
|
||||
int ch;
|
||||
|
||||
/* Make sure that the display reflects the current state */
|
||||
|
|
@ -812,8 +816,6 @@ static int cle_editloop(FAR struct cle_s *priv)
|
|||
* home/end, del
|
||||
*/
|
||||
|
||||
char state = 0;
|
||||
|
||||
/* loop till we have a ch */
|
||||
|
||||
for (; ; )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue