On Thu, 15 Feb 2018 13:57:18 +0200
Arkadi Sharshevsky <arka...@mellanox.com> wrote:

> On 02/14/2018 05:12 PM, Stephen Hemminger wrote:
> > On Wed, 14 Feb 2018 10:55:17 +0200
> > Arkadi Sharshevsky <arka...@mellanox.com> wrote:
> >   
> >> +static mnl_cb_t mnlg_cb_array[NLMSG_MIN_TYPE] = {
> >> +  [NLMSG_NOOP]    = mnlg_cb_noop,
> >> +  [NLMSG_ERROR]   = mnlg_cb_error,
> >> +  [NLMSG_DONE]    = mnlg_cb_stop,
> >> +  [NLMSG_OVERRUN] = mnlg_cb_noop,
> >> +};
> >> +  
> > 
> > Could be const?
> >   
> 
> I pass the array to mnl_cb_run2() which will discard the 'const'
> qualifier. So I dont think this is very beneficial.

Thanks, makes sense,

Reply via email to