summaryrefslogtreecommitdiff
blob: cee331e53ca257f2bf5dca3e0ed64abc75ed9ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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;