Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libterminfo Whitespace, fit in 80 and extra braces for r...
details: https://anonhg.NetBSD.org/src/rev/8ac04e714c20
branches: trunk
changeset: 353096:8ac04e714c20
user: roy <roy%NetBSD.org@localhost>
date: Thu Apr 20 08:34:23 2017 +0000
description:
Whitespace, fit in 80 and extra braces for readability.
No functional change.
diffstat:
lib/libterminfo/term.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diffs (65 lines):
diff -r 9cfba4668ec4 -r 8ac04e714c20 lib/libterminfo/term.c
--- a/lib/libterminfo/term.c Thu Apr 20 06:27:08 2017 +0000
+++ b/lib/libterminfo/term.c Thu Apr 20 08:34:23 2017 +0000
@@ -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 @@
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 @@
cdbr_close(db);
return r;
- fail:
+fail:
cdbr_close(db);
return 0;
}
@@ -368,9 +367,10 @@
_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 @@
r = _ti_dbgettermp(term, _PATH_TERMINFO, name, flags);
return r;
-
}
int
Home |
Main Index |
Thread Index |
Old Index