From: Jim Warner Date: Wed, 15 Jun 2022 05:00:00 +0000 (-0500) Subject: ps: that restored aix behavior gets its ultimate tweak <=== port of newlib 5edeabbd X-Git-Tag: v4.0.3_rc1~33^2~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84a1bc779af60ad8e219c51499a3af798a8e281f;p=procps-ng ps: that restored aix behavior gets its ultimate tweak <=== port of newlib 5edeabbd ______________________________ original newlib message 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 --- diff --git a/ps/sortformat.c b/ps/sortformat.c index 1ec3d77c..20e4fd2f 100644 --- a/ps/sortformat.c +++ b/ps/sortformat.c @@ -132,8 +132,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: