]> granicus.if.org Git - procps-ng/commitdiff
ps: that restored aix behavior gets its ultimate tweak
authorJim Warner <james.warner@comcast.net>
Wed, 13 Apr 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Sun, 17 Apr 2022 00:43:19 +0000 (10:43 +1000)
Now that this 'c' variable initial assignment has been
moved outside the looping code, there is no longer any
need to specifically check for space/comma when 'c' is
not '%'. So, let us eliminate those two lines of code.

[ i promise not to change this algorithm ever again! ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
ps/sortformat.c

index bc90ca00a434e90a53d5a17da504cf73b246e9cc..ddbeed6b9ec4880d479d5c2334e4f41990fe942d 100644 (file)
@@ -131,8 +131,6 @@ static const char *aix_format_parse(sf_node *sfn){
   initial:
     if(c=='%')    goto get_desc;
     if(!c)        goto looks_ok;
-    if(c==' ')    goto get_more;
-    if(c==',')    goto aix_oops;
   /* get_text: */
     items++;
   get_more: