Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses attron(), attroff() - don't take a shortcut.
details: https://anonhg.NetBSD.org/src/rev/4bc67e735c14
branches: trunk
changeset: 994829:4bc67e735c14
user: uwe <uwe%NetBSD.org@localhost>
date: Sat Nov 24 01:04:18 2018 +0000
description:
attron(), attroff() - don't take a shortcut.
diffstat:
lib/libcurses/attributes.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r c2f7c8d67b8d -r 4bc67e735c14 lib/libcurses/attributes.c
--- a/lib/libcurses/attributes.c Sat Nov 24 00:47:51 2018 +0000
+++ b/lib/libcurses/attributes.c Sat Nov 24 01:04:18 2018 +0000
@@ -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 @@
int
attron(int attr)
{
- return __wattr_on(stdscr, (attr_t) attr);
+ return wattron(stdscr, attr);
}
/*
@@ -115,7 +115,7 @@
int
attroff(int attr)
{
- return __wattr_off(stdscr, (attr_t) attr);
+ return wattroff(stdscr, attr);
}
/*
Home |
Main Index |
Thread Index |
Old Index