Module Name: src
Committed By: blymn
Date: Fri Feb 28 07:58:42 UTC 2014
Modified Files:
src/lib/libcurses: notimeout.c
Log Message:
Fix reversed logic in the notimeout call.
Fix obsolete email addresses in copyright.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libcurses/notimeout.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libcurses/notimeout.c
diff -u src/lib/libcurses/notimeout.c:1.5 src/lib/libcurses/notimeout.c:1.6
--- src/lib/libcurses/notimeout.c:1.5 Wed Jun 13 10:45:58 2001
+++ src/lib/libcurses/notimeout.c Fri Feb 28 07:58:42 2014
@@ -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 ([email protected], [email protected])
+ * Copyright (c) 1998-2014 Brett Lymn ([email protected])
* 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 @@ int
notimeout(WINDOW *win, bool bf)
{
if (bf)
- win->flags &= ~__NOTIMEOUT;
- else
win->flags |= __NOTIMEOUT;
+ else
+ win->flags &= ~__NOTIMEOUT;
return OK;
}