From: Karel Zak Date: Mon, 14 Nov 2011 12:28:50 +0000 (+0100) Subject: readprifile: remove unnecessary optstring array X-Git-Tag: v2.21-rc1~193 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cda9acbe35ade35676f54d8842b34a9fb9c45547;p=thirdparty%2Futil-linux.git readprifile: remove unnecessary optstring array Signed-off-by: Karel Zak --- 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;