Subject: lib/15920: curses vs. ncurses: ERR/OK definition mismatch
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wiz@netbsd.org>
List: netbsd-bugs
Date: 03/15/2002 01:22:16
>Number:         15920
>Category:       lib
>Synopsis:       curses vs. ncurses: ERR/OK definition mismatch
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 14 16:22:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Klausner
>Release:        NetBSD 1.5ZB
>Organization:
>Environment:
	
	
System: NetBSD hiro 1.5ZB NetBSD 1.5ZB (HIRO) #0: Wed Mar 13 01:43:46 CET 2002 wiz@hiro:/archive/cvs/src/sys/arch/i386/compile/HIRO i386
Architecture: i386
Machine: i386
>Description:
In ncurses-5.2's ncurses.h, ERR is defined to be -1, and OK 0.
In NetBSD's curses.h, ERR is 0, and OK is 1.
This will probably lead to compatibility problems.
>How-To-Repeat:
Compare the two header files.
>Fix:
Change ERR and OK in curses.h to -1 and 0 respectively, and audit
the curses code on hidden assumptions?

>Release-Note:
>Audit-Trail:
>Unformatted: