From: Sergey Vlasov Date: Sun, 3 Sep 2006 12:12:51 +0000 (+0200) Subject: make struct option arrays static const X-Git-Tag: 174~2151 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=e97717bac286ce7b13f20f95a56281807d9feeb1 make struct option arrays static const --- diff --git a/udevinfo.c b/udevinfo.c index d1d77152c..dca461695 100644 --- a/udevinfo.c +++ b/udevinfo.c @@ -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' }, diff --git a/udevtrigger.c b/udevtrigger.c index d332e088c..2e001db5c 100644 --- a/udevtrigger.c +++ b/udevtrigger.c @@ -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' },