apps/graphics/pdcurses: Fix some miscellaneous, harmless typos and standard violations.

This commit is contained in:
Gregory Nutt 2017-11-27 17:31:22 -06:00
parent 2c3042766d
commit cab8363d44
4 changed files with 14 additions and 8 deletions

View File

@ -797,8 +797,10 @@ static void output_test(WINDOW *win)
static void resize_test(WINDOW *dummy)
{
WINDOW *win1;
int nwidth = 135, nheight = 52;
int owidth = COLS, oheight = LINES;
int nwidth = 135;
int nheight = 52;
int owidth = COLS;
int oheight = LINES;
savetty();
@ -845,7 +847,8 @@ static void resize_test(WINDOW *dummy)
static void pad_test(WINDOW *dummy)
{
WINDOW *pad, *spad;
WINDOW *pad;
WINDOW *spad;
pad = newpad(50, 100);
wattron(pad, A_REVERSE);
@ -886,7 +889,8 @@ static void clipboard_test(WINDOW *win)
static const char *text =
"This string placed in clipboard by PDCurses test program, testcurs.";
char *ptr = NULL;
long i, length = 0;
long length = 0;
long i;
mvaddstr(1, 1, "This test will display the contents of the system clipboard");
@ -1201,7 +1205,9 @@ int testcurs_main(int argc, char *argv[])
#endif
{
WINDOW *win;
int key, old_option = -1, new_option = 0;
int key;
int old_option = -1;
int new_option = 0;
bool quit = false;
#ifdef CONFIG_LIBC_LOCALE

View File

@ -117,7 +117,7 @@
# define PDCURSES_PPB_MASK (PDCURSES_PPB - 1)
# define PDCURSES_PPB_SHIFT 3
# define PDCURSES_INIT_COLOR CONFIG_PDCURSES_BGCOLOR_GREYLEVEL
# define PDCURSES_MONOCHROME 2
# define PDCURSES_MONOCHROME 1
#elif defined(CONFIG_PDCURSES_COLORFMT_Y2)
# define PDCURSES_COLORFMT FB_FMT_Y2
# define PDCURSES_BPP 2

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/graphics/include/curses.h
* apps/include/graphics/curses.h
* Public Domain Curses
* $Id: curses.h,v 1.295 2008/07/15 17:13:25 wmcbrine Exp $
*

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/graphics/include/curses.h
* apps/include/graphics/panel.h
* Public Domain Curses -- Panels for PDCurses
* $Id: panel.h,v 1.19 2008/07/13 16:08:16 wmcbrine Exp $
*