chiark / gitweb /
make struct option arrays static const
authorSergey Vlasov <vsu@altlinux.ru>
Sun, 3 Sep 2006 12:12:51 +0000 (14:12 +0200)
committerKay Sievers <kay.sievers@suse.de>
Sun, 3 Sep 2006 12:12:51 +0000 (14:12 +0200)
udevinfo.c
udevtrigger.c

index d1d77152c3ffed3ad82bc4eb305a8508d84c8a06..dca4616958b4eeeb5e662e034af6f58346971c91 100644 (file)
@@ -168,7 +168,7 @@ int main(int argc, char *argv[], char *envp[])
        struct udevice *udev;
        int root = 0;
 
-       struct option options[] = {
+       static const struct option options[] = {
                { "name", 1, NULL, 'n' },
                { "path", 1, NULL, 'p' },
                { "query", 1, NULL, 'q' },
index d332e088ca503e53e0cca09dba07028caf6f52f6..2e001db5c9c4c08d87c6844cd8f3fc7cd4c1956a 100644 (file)
@@ -468,7 +468,7 @@ int main(int argc, char *argv[], char *envp[])
 {
        int failed = 0;
        int option;
-       struct option options[] = {
+       static const struct option options[] = {
                { "verbose", 0, NULL, 'v' },
                { "dry-run", 0, NULL, 'n' },
                { "retry-failed", 0, NULL, 'F' },