Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Make nodelay() return an int.



details:   https://anonhg.NetBSD.org/src/rev/81988764ca3f
branches:  trunk
changeset: 555949:81988764ca3f
user:      jdc <jdc%NetBSD.org@localhost>
date:      Thu Dec 04 21:24:36 2003 +0000

description:
Make nodelay() return an int.
Now conforms to the Single Unix Specification.
Fixes PR lib/23531 by usa at garbagecollect dot jp.

diffstat:

 lib/libcurses/curses.h  |  4 ++--
 lib/libcurses/nodelay.c |  7 ++++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (50 lines):

diff -r 2d4fd15f89bf -r 81988764ca3f lib/libcurses/curses.h
--- a/lib/libcurses/curses.h    Thu Dec 04 20:07:59 2003 +0000
+++ b/lib/libcurses/curses.h    Thu Dec 04 21:24:36 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: curses.h,v 1.79 2003/10/05 10:13:02 jdc Exp $  */
+/*     $NetBSD: curses.h,v 1.80 2003/12/04 21:24:36 jdc Exp $  */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -596,7 +596,7 @@
 int     nl(void);
 attr_t  no_color_video(void);
 int     nocbreak(void);
-void    nodelay(WINDOW *, bool);
+int     nodelay(WINDOW *, bool);
 int     noecho(void);
 int     nonl(void);
 void    noqiflush(void);
diff -r 2d4fd15f89bf -r 81988764ca3f lib/libcurses/nodelay.c
--- a/lib/libcurses/nodelay.c   Thu Dec 04 20:07:59 2003 +0000
+++ b/lib/libcurses/nodelay.c   Thu Dec 04 21:24:36 2003 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: nodelay.c,v 1.5 2001/06/13 10:45:58 wiz Exp $  */
+/*      $NetBSD: nodelay.c,v 1.6 2003/12/04 21:24:36 jdc Exp $  */
 
 /*-
  * Copyright (c) 1998-1999 Brett Lymn (blymn%baea.com.au@localhost, brett_lymn%yahoo.com@localhost)
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: nodelay.c,v 1.5 2001/06/13 10:45:58 wiz Exp $");
+__RCSID("$NetBSD: nodelay.c,v 1.6 2003/12/04 21:24:36 jdc Exp $");
 #endif                         /* not lint */
 
 #include "curses.h"
@@ -39,11 +39,12 @@
  *     Turn on and off blocking reads in getch for a
  *     given window.
  */
-void
+int
 nodelay(WINDOW *win, bool bf)
 {
        if (bf)
                win->delay = 0;
        else
                win->delay = -1;
+       return(OK);
 }



Home | Main Index | Thread Index | Old Index