Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115061506
D38099.id115233.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
650 B
Referenced Files
None
Subscribers
None
D38099.id115233.diff
View Options
diff --git a/sys/netlink/netlink_message_writer.c b/sys/netlink/netlink_message_writer.c
--- a/sys/netlink/netlink_message_writer.c
+++ b/sys/netlink/netlink_message_writer.c
@@ -368,7 +368,7 @@
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 @@
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:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 21, 2:42 AM (17 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17658741
Default Alt Text
D38099.id115233.diff (650 B)
Attached To
Mode
D38099: netlink: Make the writers function table static and const
Attached
Detach File
Event Timeline
Log In to Comment