make struct option arrays static const
This commit is contained in:
parent
c3d6ca8767
commit
e97717bac2
|
@ -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' },
|
||||
|
|
|
@ -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' },
|
||||
|
|
Loading…
Reference in a new issue