make struct option arrays static const
This commit is contained in:
committed by
Kay Sievers
parent
c3d6ca8767
commit
e97717bac2
+1
-1
@@ -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
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user