From: Matthew Fernandez Date: Sat, 29 May 2021 17:48:35 +0000 (-0700) Subject: make nop usage string a constant array X-Git-Tag: 2.47.3~16^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=736d8afa01eae2af224a37891403f1e2a178c44f;p=graphviz make nop usage string a constant array The compiler could probably determine this already, but this makes it a little more obvious that it can be inlined and the useString symbol can be the start of the data rather than a pointer to the start of the data. --- diff --git a/cmd/tools/nop.c b/cmd/tools/nop.c index 0fc805c0e..1c3cee97c 100644 --- a/cmd/tools/nop.c +++ b/cmd/tools/nop.c @@ -23,7 +23,7 @@ char **Files; int chkOnly; -static char *useString = "Usage: nop [-p?] \n\ +static const char useString[] = "Usage: nop [-p?] \n\ -p - check for valid DOT\n\ -? - print usage\n\ If no files are specified, stdin is used\n";