Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Fix quoting in macro.



details:   https://anonhg.NetBSD.org/src/rev/3c6b92d4d8eb
branches:  trunk
changeset: 338510:3c6b92d4d8eb
user:      wiz <wiz%NetBSD.org@localhost>
date:      Thu May 28 06:28:37 2015 +0000

description:
Fix quoting in macro.
Needed by dialog-1.2-20150513.

diffstat:

 lib/libcurses/unctrl.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 07ad04909043 -r 3c6b92d4d8eb lib/libcurses/unctrl.h
--- a/lib/libcurses/unctrl.h    Thu May 28 04:16:50 2015 +0000
+++ b/lib/libcurses/unctrl.h    Thu May 28 06:28:37 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: unctrl.h,v 1.4 2007/05/28 15:01:58 blymn Exp $ */
+/*     $NetBSD: unctrl.h,v 1.5 2015/05/28 06:28:37 wiz Exp $   */
 
 /*
  * Copyright (c) 1982, 1993
@@ -53,6 +53,6 @@
 #define        unctrllen(c)    __unctrllen[((unsigned char)c) & 0xff]
 
 #ifdef HAVE_WCHAR
-#define        wunctrl(wc)             __wunctrl[( int )(wc->vals[ 0 ]) & 0xff]
+#define        wunctrl(wc)             __wunctrl[( int )((wc)->vals[ 0 ]) & 0xff]
 #endif /* HAVE_WCHAR */
 #endif /* _UNCTRL_H_ */



Home | Main Index | Thread Index | Old Index