Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Restore changes 1.23->1.24 that were accidentl...



details:   https://anonhg.NetBSD.org/src/rev/816d0088618e
branches:  trunk
changeset: 487772:816d0088618e
user:      jdc <jdc%NetBSD.org@localhost>
date:      Mon Jun 12 21:04:08 2000 +0000

description:
Restore changes 1.23->1.24 that were accidently overwritten.

diffstat:

 lib/libcurses/setterm.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r d990058c1475 -r 816d0088618e lib/libcurses/setterm.c
--- a/lib/libcurses/setterm.c   Mon Jun 12 20:51:39 2000 +0000
+++ b/lib/libcurses/setterm.c   Mon Jun 12 21:04:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: setterm.c,v 1.25 2000/06/12 20:48:34 jdc Exp $ */
+/*     $NetBSD: setterm.c,v 1.26 2000/06/12 21:04:08 jdc Exp $ */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)setterm.c  8.8 (Berkeley) 10/25/94";
 #else
-__RCSID("$NetBSD: setterm.c,v 1.25 2000/06/12 20:48:34 jdc Exp $");
+__RCSID("$NetBSD: setterm.c,v 1.26 2000/06/12 21:04:08 jdc Exp $");
 #endif
 #endif /* not lint */
 
@@ -340,12 +340,11 @@
        char *new_tspace;
 
          /* verify cap exists and grab size of it at the same time */
-       if (t_getstr(_cursesi_genbuf, name, NULL, &ent_size) == ERR)
-               return ERR;
+       t_getstr(_cursesi_genbuf, name, NULL, &ent_size);
 
          /* grow tspace to hold the new cap */
        if ((new_tspace = realloc(tspace, ent_size + tspace_size)) == NULL)
-               return ERR;
+               return NULL;
 
          /* point aoftspace to the same place in the newly allocated buffer */
        offset = aoftspace - tspace;



Home | Main Index | Thread Index | Old Index