mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
netlink: Make the writers function table static and const
No functional change intended. Reviewed by: melifaro Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38099
This commit is contained in:
parent
d91be0f121
commit
e262610007
@ -368,7 +368,7 @@ nlmsg_write_group_lbuf(struct nl_writer *nw, void *buf, int datalen, int cnt)
|
||||
return (true);
|
||||
}
|
||||
|
||||
struct nlwriter_ops nlmsg_writers[] = {
|
||||
static const struct nlwriter_ops nlmsg_writers[] = {
|
||||
/* NS_WRITER_TYPE_MBUF */
|
||||
{
|
||||
.init = nlmsg_get_ns_mbuf,
|
||||
@ -394,7 +394,7 @@ struct nlwriter_ops nlmsg_writers[] = {
|
||||
static void
|
||||
nlmsg_set_callback(struct nl_writer *nw)
|
||||
{
|
||||
struct nlwriter_ops *pops = &nlmsg_writers[nw->writer_type];
|
||||
const struct nlwriter_ops *pops = &nlmsg_writers[nw->writer_type];
|
||||
|
||||
switch (nw->writer_target) {
|
||||
case NS_WRITER_TARGET_SOCKET:
|
||||
|
Loading…
Reference in New Issue
Block a user