Module Name:    src
Committed By:   roy
Date:           Thu Apr 20 08:34:23 UTC 2017

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

Log Message:
Whitespace, fit in 80 and extra braces for readability.
No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libterminfo/term.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/term.c
diff -u src/lib/libterminfo/term.c:1.20 src/lib/libterminfo/term.c:1.21
--- src/lib/libterminfo/term.c:1.20	Thu Nov 24 17:09:55 2016
+++ src/lib/libterminfo/term.c	Thu Apr 20 08:34:23 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: term.c,v 1.20 2016/11/24 17:09:55 christos Exp $ */
+/* $NetBSD: term.c,v 1.21 2017/04/20 08:34:23 roy Exp $ */
 
 /*
  * Copyright (c) 2009, 2010, 2011 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: term.c,v 1.20 2016/11/24 17:09:55 christos Exp $");
+__RCSID("$NetBSD: term.c,v 1.21 2017/04/20 08:34:23 roy Exp $");
 
 #include <sys/stat.h>
 
@@ -86,14 +86,13 @@ _ti_readterm(TERMINAL *term, const char 
 	if (ver != 1)
 		goto out;
 
-
-	if (allocset(&term->flags, 0, TIFLAGMAX + 1, sizeof(*term->flags)) == -1)
+	if (allocset(&term->flags, 0, TIFLAGMAX+1, sizeof(*term->flags)) == -1)
 		return -1;
 
-	if (allocset(&term->nums, -1, TINUMMAX + 1, sizeof(*term->nums)) == -1)
+	if (allocset(&term->nums, -1, TINUMMAX+1, sizeof(*term->nums)) == -1)
 		return -1;
 
-	if (allocset(&term->strs, 0, TISTRMAX + 1, sizeof(*term->strs)) == -1)
+	if (allocset(&term->strs, 0, TISTRMAX+1, sizeof(*term->strs)) == -1)
 		return -1;
 
 	if (term->_arealen != caplen) {
@@ -293,7 +292,7 @@ _ti_dbgetterm(TERMINAL *term, const char
 	cdbr_close(db);
 	return r;
 
- fail:
+fail:
 	cdbr_close(db);
 	return 0;
 }
@@ -368,9 +367,10 @@ _ti_findterm(TERMINAL *term, const char 
 	_ti_database = NULL;
 	r = 0;
 
-	if ((e = getenv("TERMINFO")) != NULL && *e != '\0')
+	if ((e = getenv("TERMINFO")) != NULL && *e != '\0') {
 		if (e[0] == '/')
 			return _ti_dbgetterm(term, e, name, flags);
+	}
 
 	c = NULL;
 	if (e == NULL && (c = getenv("TERMCAP")) != NULL) {
@@ -422,7 +422,6 @@ _ti_findterm(TERMINAL *term, const char 
 		r = _ti_dbgettermp(term, _PATH_TERMINFO, name, flags);
 
 	return r;
-
 }
 
 int

Reply via email to