Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Fix reversed logic in the notimeout call.



details:   https://anonhg.NetBSD.org/src/rev/2844143af3b8
branches:  trunk
changeset: 793898:2844143af3b8
user:      blymn <blymn%NetBSD.org@localhost>
date:      Fri Feb 28 07:58:42 2014 +0000

description:
Fix reversed logic in the notimeout call.
Fix obsolete email addresses in copyright.

diffstat:

 lib/libcurses/notimeout.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r 36becbd4e4e3 -r 2844143af3b8 lib/libcurses/notimeout.c
--- a/lib/libcurses/notimeout.c Fri Feb 28 06:10:54 2014 +0000
+++ b/lib/libcurses/notimeout.c Fri Feb 28 07:58:42 2014 +0000
@@ -1,7 +1,7 @@
-/*      $NetBSD: notimeout.c,v 1.5 2001/06/13 10:45:58 wiz Exp $  */
+/*      $NetBSD: notimeout.c,v 1.6 2014/02/28 07:58:42 blymn Exp $  */
 
 /*-
- * Copyright (c) 1998-1999 Brett Lymn (blymn%baea.com.au@localhost, brett_lymn%yahoo.com@localhost)
+ * Copyright (c) 1998-2014 Brett Lymn (blymn%netbsd.org@localhost)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: notimeout.c,v 1.5 2001/06/13 10:45:58 wiz Exp $");
+__RCSID("$NetBSD: notimeout.c,v 1.6 2014/02/28 07:58:42 blymn Exp $");
 #endif                         /* not lint */
 
 #include "curses.h"
@@ -43,9 +43,9 @@
 notimeout(WINDOW *win, bool bf)
 {
        if (bf)
-               win->flags &= ~__NOTIMEOUT;
+               win->flags |= __NOTIMEOUT;
        else
-               win->flags |= __NOTIMEOUT;
+               win->flags &= ~__NOTIMEOUT;
 
        return OK;
 }



Home | Main Index | Thread Index | Old Index