psmisc/psmisc-22.12-tigetstr.patch
2017-06-20 14:04:40 +00:00

16 lines
602 B
Diff

---
src/pstree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- src/pstree.c
+++ src/pstree.c 2017-06-20 13:50:18.024118675 +0000
@@ -1093,7 +1093,7 @@ int main(int argc, char **argv)
} else if (isatty(1) && (termname = getenv("TERM")) &&
(strlen(termname) > 0) &&
(setupterm(NULL, 1 /* stdout */ , NULL) == OK) &&
- (tigetstr("acsc") > 0)) {
+ ((int)tigetstr("acsc") > 0)) {
/*
* Failing that, if TERM is defined, a non-null value, and the terminal
* has the VT100 graphics charset, use it.