Re: [dpdk-dev] [PATCH] kvargs: make pointers in string arrays const

2017-01-13 Thread Thomas Monjalon
2017-01-13 18:44, Olivier Matz: > On Thu, 12 Jan 2017 16:18:27 +, Bruce Richardson > wrote: > > Change the parameters of functions from const char *valid[] to > > const char * const valid[]. This additional const is needed to > > allow us to fix some checkpatch warnings, as well as being good

Re: [dpdk-dev] [PATCH] kvargs: make pointers in string arrays const

2017-01-13 Thread Olivier Matz
On Thu, 12 Jan 2017 16:18:27 +, Bruce Richardson wrote: > Change the parameters of functions from const char *valid[] to > const char * const valid[]. This additional const is needed to > allow us to fix some checkpatch warnings, as well as being good > programming practice. > > For the check

[dpdk-dev] [PATCH] kvargs: make pointers in string arrays const

2017-01-12 Thread Bruce Richardson
Change the parameters of functions from const char *valid[] to const char * const valid[]. This additional const is needed to allow us to fix some checkpatch warnings, as well as being good programming practice. For the checkpatch warnings, if we have a set of command line args that we want to che