summaryrefslogtreecommitdiff
path: root/test/testaddch.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/testaddch.c')
-rw-r--r--test/testaddch.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/testaddch.c b/test/testaddch.c
index 7a909e2..ccadab8 100644
--- a/test/testaddch.c
+++ b/test/testaddch.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright (c) 1998-2006,2009 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2013,2014 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@ -29,7 +29,7 @@
* This is an example written by Alexander V. Lukyanov <lav@yars.free.net>,
* to demonstrate an inconsistency between ncurses and SVr4 curses.
*
- * $Id: testaddch.c,v 1.7 2009/08/29 19:02:25 tom Exp $
+ * $Id: testaddch.c,v 1.12 2014/08/02 23:11:20 tom Exp $
*/
#include <test.priv.h>
@@ -63,21 +63,21 @@ main(
for (i = 0; i < 8; i++) {
back = (i & 1) ? A_BOLD | 'B' : ' ';
set = (i & 2) ? A_REVERSE : 0;
- attr = (i & 4) ? COLOR_PAIR(4) : 0;
+ attr = (chtype) ((i & 4) ? COLOR_PAIR(4) : 0);
bkgdset(back);
- (void) attrset(set);
+ (void) attrset(AttrArg(set, 0));
attr_addstr("Test string with spaces -> <-\n", attr);
}
addch('\n');
for (i = 0; i < 8; i++) {
- back = (i & 1) ? A_BOLD | 'B' | COLOR_PAIR(1) : ' ';
- set = (i & 2) ? A_REVERSE | COLOR_PAIR(2) : 0;
- attr = (i & 4) ? COLOR_PAIR(4) : 0;
+ back = (i & 1) ? (A_BOLD | 'B' | (chtype) COLOR_PAIR(1)) : ' ';
+ set = (i & 2) ? (A_REVERSE | (chtype) COLOR_PAIR(2)) : 0;
+ attr = (chtype) ((i & 4) ? (chtype) COLOR_PAIR(4) : 0);
bkgdset(back);
- (void) attrset(set);
+ (void) attrset(AttrArg(set, 0));
attr_addstr("Test string with spaces -> <-\n", attr);
}