make struct option arrays static const

This commit is contained in:
Sergey Vlasov
2006-09-03 14:12:51 +02:00
committed by Kay Sievers
parent c3d6ca8767
commit e97717bac2
2 changed files with 2 additions and 2 deletions
+1 -1
View 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' },
+1 -1
View 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' },