]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
readprifile: remove unnecessary optstring array
authorKarel Zak <kzak@redhat.com>
Mon, 14 Nov 2011 12:28:50 +0000 (13:28 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 14 Nov 2011 12:28:50 +0000 (13:28 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/readprofile.c

index e72f79d46f6c8af1dfb869a310870e76a836902b..704201f58b771337be087379e5e0d63381f112a7 100644 (file)
@@ -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;