Unverified Commit a5e8d792 by Tobin C. Harding Committed by Christian Brauner

cmd: Use 'const' for static string constant.

checkpatch emits warning: WARNING: static char array declaration should probably be static const char Use 'const' for static string constant (array of chars). Signed-off-by: 's avatarTobin C. Harding <me@tobin.cc>
parent 9c6ffb81
...@@ -73,7 +73,7 @@ static struct option long_options[] = { ...@@ -73,7 +73,7 @@ static struct option long_options[] = {
{ "lxcpath", required_argument, 0, 'P' }, { "lxcpath", required_argument, 0, 'P' },
{ 0, 0, 0, 0 } { 0, 0, 0, 0 }
}; };
static char short_options[] = "n:hqo:l:P:"; static const char short_options[] = "n:hqo:l:P:";
struct arguments { struct arguments {
const struct option *options; const struct option *options;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment