chiark / gitweb /
make struct option arrays static const
[elogind.git] / udevinfo.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' },