From 61c03be59634819f33ebc84006260b819e67a50e Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Wed, 20 Dec 2017 15:45:55 +0100 Subject: [PATCH] strace.c: sort option arguments alphabetically Except for the ones that enabled by configure options. While we are here, let's also change the indentation of while expression continuation in order to separate it from the following switch clause. * strace.c (init): Reorder options in getopt() call. --- strace.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/strace.c b/strace.c index d15bef22..6fbea45f 100644 --- a/strace.c +++ b/strace.c @@ -1577,13 +1577,11 @@ init(int argc, char *argv[]) # error Bug in DEFAULT_QUAL_FLAGS #endif qualify("signal=all"); - while ((c = getopt(argc, argv, - "+b:cCdfFhiqrtTvVwxyz" + while ((c = getopt(argc, argv, "+" #ifdef USE_LIBUNWIND - "k" + "k" #endif - "D" - "a:e:o:O:p:s:S:u:E:P:I:")) != EOF) { + "a:b:cCdDe:E:fFhiI:o:O:p:P:qrs:S:tTu:vVwxyz")) != EOF) { switch (c) { case 'b': if (strcmp(optarg, "execve") != 0) -- 2.40.0