Re: [PATCH libmnl] callback: mark cb_ctl_array 'const' in mnl_cb_run2()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 03, 2016 at 12:52:34PM +0200, Guillaume Nault wrote:
> Users of mnl_cb_run2() would typically pass a 'static const' array as
> cb_ctl_array parameter. Unfortunately this triggers a compiler warning
> because the prototype doesn't declare cb_ctl_array with the 'const'
> qualifier.
> 
> Since mnl_cb_run2() and __mnl_cb_run() don't modify cb_ctl_array (and
> don't have any reason to do so in the future), we can mark this
> parameter as 'const'.
> 
> There should be no impact on existing users beyond removing the
> compiler warning when using a constant array.

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux