From 5edeabbd4af0dc34262a6ef3333362d8216c467a Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Wed, 13 Apr 2022 00:00:00 -0500 Subject: [PATCH] ps: that restored aix behavior gets its ultimate tweak 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 --- ps/sortformat.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ps/sortformat.c b/ps/sortformat.c index bc90ca00..ddbeed6b 100644 --- a/ps/sortformat.c +++ b/ps/sortformat.c @@ -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: