]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/chgat.c
ncurses 5.6 - patch 20070630
[ncurses.git] / test / chgat.c
index 06a27d738c85adf952a392bd90ca4e07d8696f3b..ef9ab6762362dd6e602014565e1bddd277d1772b 100644 (file)
@@ -26,7 +26,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: chgat.c,v 1.6 2007/01/06 23:28:46 tom Exp $
+ * $Id: chgat.c,v 1.7 2007/06/30 17:52:17 tom Exp $
  *
  * test-driver for chgat/wchgat/mvchgat/mvwchgat
  */
@@ -47,7 +47,8 @@
 typedef struct {
     unsigned c;
     unsigned v;
-    int pair, attr;
+    int pair;
+    unsigned attr;
     int count;
     int ch;
     const char *c_msg;
@@ -94,11 +95,11 @@ color_params(unsigned state, int *pair)
 }
 
 static const char *
-video_params(unsigned state, int *attr)
+video_params(unsigned state, unsigned *attr)
 {
     /* *INDENT-OFF* */
     static struct {
-       int attr;
+       unsigned attr;
        const char *msg;
     } table[] = {
        { A_NORMAL,     "normal" },