From cda9acbe35ade35676f54d8842b34a9fb9c45547 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 14 Nov 2011 13:28:50 +0100 Subject: [PATCH] readprifile: remove unnecessary optstring array Signed-off-by: Karel Zak --- sys-utils/readprofile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c index e72f79d46f..704201f58b 100644 --- a/sys-utils/readprofile.c +++ b/sys-utils/readprofile.c @@ -145,7 +145,6 @@ int main(int argc, char **argv) int popenMap; /* flag to tell if popen() has been used */ int header_printed; - static const char optstring[] = "m:p:M:ivabsrnVh"; static const struct option longopts[] = { {"mapfile", required_argument, NULL, 'm'}, {"profile", required_argument, NULL, 'p'}, @@ -171,7 +170,7 @@ int main(int argc, char **argv) proFile = defaultpro; mapFile = defaultmap; - while ((c = getopt_long(argc, argv, optstring, longopts, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "m:p:M:ivabsrnVh", longopts, NULL)) != -1) { switch (c) { case 'm': mapFile = optarg; -- 2.47.2