]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/testaddch.c
ncurses 6.2 - patch 20200627
[ncurses.git] / test / testaddch.c
index d39109894173ddb95f9749ba81cf9e6cff7b05dd..875c8be7129cae06dd8f23c910798081ffa6d5af 100644 (file)
@@ -1,5 +1,6 @@
 /****************************************************************************
- * Copyright (c) 1998-2013,2014 Free Software Foundation, Inc.              *
+ * Copyright 2020 Thomas E. Dickey                                          *
+ * Copyright 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 +30,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.10 2014/07/27 00:24:49 tom Exp $
+ * $Id: testaddch.c,v 1.13 2020/02/02 23:34:34 tom Exp $
  */
 #include <test.priv.h>
 
@@ -66,7 +67,7 @@ main(
        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);
     }
@@ -77,7 +78,7 @@ main(
        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);
     }