Source-Changes-HG archive

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

[src/trunk]: src/lib/libterminfo revert OOPS change now that most of the reas...



details:   https://anonhg.NetBSD.org/src/rev/2c5d65608b54
branches:  trunk
changeset: 763153:2c5d65608b54
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Mar 11 13:28:52 2011 +0000

description:
revert OOPS change now that most of the reasons for tgoto to return NULL
have been eliminated.

diffstat:

 lib/libterminfo/termcap.c |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (32 lines):

diff -r 0c2271063b00 -r 2c5d65608b54 lib/libterminfo/termcap.c
--- a/lib/libterminfo/termcap.c Fri Mar 11 12:11:00 2011 +0000
+++ b/lib/libterminfo/termcap.c Fri Mar 11 13:28:52 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: termcap.c,v 1.12 2011/03/10 10:17:19 roy Exp $ */
+/* $NetBSD: termcap.c,v 1.13 2011/03/11 13:28:52 christos Exp $ */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: termcap.c,v 1.12 2011/03/10 10:17:19 roy Exp $");
+__RCSID("$NetBSD: termcap.c,v 1.13 2011/03/11 13:28:52 christos Exp $");
 
 #include <assert.h>
 #include <ctype.h>
@@ -178,12 +178,8 @@
 char *
 tgoto(const char *cm, int destcol, int destline)
 {
-       static char OOPS[] = "OOPS";    
-       char *p;
-
        _DIAGASSERT(cm != NULL);
-       p = vtparm(cm, destline, destcol);
-       return p ? p : OOPS;
+       return vtparm(cm, destline, destcol);
 }
 
 static const char *



Home | Main Index | Thread Index | Old Index