summaryrefslogtreecommitdiff
path: root/lib/libcurses/setterm.c
diff options
context:
space:
mode:
authorjdc <jdc@NetBSD.org>2007-09-19 22:00:43 +0000
committerjdc <jdc@NetBSD.org>2007-09-19 22:00:43 +0000
commit260ad27047779cda35b4eae10ae80a697f4e2bb4 (patch)
treea87bfb5c39bab7a786a60f63a7578047aeabc99f /lib/libcurses/setterm.c
parentc1726648035cf4592e4792f06595905a0bb1c7aa (diff)
We don't need separate #ifdef's for __ALTCHARSET and WA_ALTCHARSET, as they
are defined to be the same in curses.h.
Diffstat (limited to 'lib/libcurses/setterm.c')
-rw-r--r--lib/libcurses/setterm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libcurses/setterm.c b/lib/libcurses/setterm.c
index 5733962914d..38684558d89 100644
--- a/lib/libcurses/setterm.c
+++ b/lib/libcurses/setterm.c
@@ -1,4 +1,4 @@
-/* $NetBSD: setterm.c,v 1.41 2007/05/28 15:01:57 blymn Exp $ */
+/* $NetBSD: setterm.c,v 1.42 2007/09/19 22:00:43 jdc Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)setterm.c 8.8 (Berkeley) 10/25/94";
#else
-__RCSID("$NetBSD: setterm.c,v 1.41 2007/05/28 15:01:57 blymn Exp $");
+__RCSID("$NetBSD: setterm.c,v 1.42 2007/09/19 22:00:43 jdc Exp $");
#endif
#endif /* not lint */
@@ -257,11 +257,8 @@ _cursesi_setterm(char *type, SCREEN *screen)
if (screen->tc_me != NULL && does_ctrl_o(screen->tc_me))
screen->mask_me = 0;
else
-#ifndef HAVE_WCHAR
screen->mask_me = __ALTCHARSET;
-#else
screen->mask_me = WA_ALTCHARSET;
-#endif /* HAVE_WCHAR */
/* Check what turning off the attributes also turns off */
#ifndef HAVE_WCHAR