Source-Changes-HG archive

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

[src/trunk]: src/games/gomoku gomoku: fix type mismatch in call to curses fun...



details:   https://anonhg.NetBSD.org/src/rev/bf2826134a3f
branches:  trunk
changeset: 366231:bf2826134a3f
user:      rillig <rillig%NetBSD.org@localhost>
date:      Thu May 19 16:58:39 2022 +0000

description:
gomoku: fix type mismatch in call to curses function

Not yet detected by lint, as lint is more permissive for type mismatches
if the value is a constant 0.  Being permissive doesn't make sense in
this case.  Now the calls to 'keypad' and 'leaveok' are consistent.

No binary change.

diffstat:

 games/gomoku/bdisp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8e962cc4ed8c -r bf2826134a3f games/gomoku/bdisp.c
--- a/games/gomoku/bdisp.c      Thu May 19 13:57:03 2022 +0000
+++ b/games/gomoku/bdisp.c      Thu May 19 16:58:39 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bdisp.c,v 1.28 2022/05/18 22:30:19 rillig Exp $        */
+/*     $NetBSD: bdisp.c,v 1.29 2022/05/19 16:58:39 rillig Exp $        */
 
 /*
  * Copyright (c) 1994
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)bdisp.c    8.2 (Berkeley) 5/3/95";
 #else
-__RCSID("$NetBSD: bdisp.c,v 1.28 2022/05/18 22:30:19 rillig Exp $");
+__RCSID("$NetBSD: bdisp.c,v 1.29 2022/05/19 16:58:39 rillig Exp $");
 #endif
 #endif /* not lint */
 
@@ -71,7 +71,7 @@
        nonl();
        noecho();
        cbreak();
-       leaveok(stdscr, FALSE);
+       leaveok(stdscr, false);
 
 #if 0 /* no mouse support in netbsd curses yet */
        mousemask(BUTTON1_CLICKED, NULL);



Home | Main Index | Thread Index | Old Index