API nlmsg_append() suggestion
Thomas Graf
tgraf at infradead.org
Sat May 14 18:47:25 EDT 2011
On Sat, May 14, 2011 at 08:39:21PM +0200, Kike wrote:
> Hi,
>
> I would like to ask if
> /int nlmsg_append(struct nl_msg *n, void *data, size_t len, int pad)/
>
> should/could be
> /int nlmsg_append(struct nl_msg *n, *const* void *data, size_t len, int pad)/
>
> What do you think?
Absolutely, there is tons of arguments which could be constified
and this is a very good example.
Work like this is currently not in front of my todo list but I will
be happy to accept patches as long as they do not break API/ABI.
More information about the libnl
mailing list