gentoo-overlay/sys-process/procps/files/procps-3.2.8-r1-forest-prefix.patch

42 lines
1.2 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

avoid gcc warnings like:
ps/output.c:341:6: warning: the address of forest_prefix will always evaluate as true
--- a/ps/output.c
+++ b/ps/output.c
@@ -338,7 +338,7 @@ static int pr_args(char *restrict const
unsigned flags;
int rightward=max_rightward;
- if(forest_prefix){
+ if(/*forest_prefix*/1){
int fh = forest_helper(outbuf);
endp += fh;
rightward -= fh;
@@ -405,7 +405,7 @@ static int pr_cgroup(char *restrict cons
if(pp->cgroup && *pp->cgroup) {
char *endp = outbuf;
int rightward=max_rightward;
- if(forest_prefix){
+ if(/*forest_prefix*/1){
int fh = forest_helper(outbuf);
endp += fh;
rightward -= fh;
@@ -365,7 +365,7 @@ static int pr_comm(char *restrict const
unsigned flags;
int rightward=max_rightward;
- if(forest_prefix){
+ if(/*forest_prefix*/1){
int fh = forest_helper(outbuf);
endp += fh;
rightward -= fh;
@@ -390,7 +390,7 @@ static int pr_fname(char *restrict const
char *endp = outbuf;
int rightward = max_rightward;
- if(forest_prefix){
+ if(/*forest_prefix*/1){
int fh = forest_helper(outbuf);
endp += fh;
rightward -= fh;