Module Name:    src
Committed By:   christos
Date:           Fri Mar 11 13:28:52 UTC 2011

Modified Files:
        src/lib/libterminfo: termcap.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libterminfo/termcap.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/libterminfo/termcap.c
diff -u src/lib/libterminfo/termcap.c:1.12 src/lib/libterminfo/termcap.c:1.13
--- src/lib/libterminfo/termcap.c:1.12	Thu Mar 10 05:17:19 2011
+++ src/lib/libterminfo/termcap.c	Fri Mar 11 08:28:52 2011
@@ -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 *

Reply via email to