Module Name:    src
Committed By:   uwe
Date:           Sat Nov 24 01:04:18 UTC 2018

Modified Files:
        src/lib/libcurses: attributes.c

Log Message:
attron(), attroff() - don't take a shortcut.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/lib/libcurses/attributes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libcurses/attributes.c
diff -u src/lib/libcurses/attributes.c:1.29 src/lib/libcurses/attributes.c:1.30
--- src/lib/libcurses/attributes.c:1.29	Fri Nov 23 11:16:59 2018
+++ src/lib/libcurses/attributes.c	Sat Nov 24 01:04:18 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: attributes.c,v 1.29 2018/11/23 11:16:59 uwe Exp $	*/
+/*	$NetBSD: attributes.c,v 1.30 2018/11/24 01:04:18 uwe Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: attributes.c,v 1.29 2018/11/23 11:16:59 uwe Exp $");
+__RCSID("$NetBSD: attributes.c,v 1.30 2018/11/24 01:04:18 uwe Exp $");
 #endif				/* not lint */
 
 #include "curses.h"
@@ -105,7 +105,7 @@ color_set(short pair, void *opts)
 int
 attron(int attr)
 {
-	return __wattr_on(stdscr, (attr_t) attr);
+	return wattron(stdscr, attr);
 }
 
 /*
@@ -115,7 +115,7 @@ attron(int attr)
 int
 attroff(int attr)
 {
-	return __wattr_off(stdscr, (attr_t) attr);
+	return wattroff(stdscr, attr);
 }
 
 /*

Reply via email to