Thread (2 messages) 2 messages, 2 authors, 2009-10-03

Re: [PATCH 1/1] net: mark net_proto_ops as const

From: Alexey Dobriyan <hidden>
Date: 2009-10-03 00:00:06
Also in: linux-bluetooth, linux-hams

On Fri, Oct 02, 2009 at 04:25:21PM -0700, Stephen Hemminger wrote:
quoted hunk ↗ jump to hunk
--- a/net/can/af_can.c
+++ b/net/can/af_can.c
@@ -842,7 +842,7 @@ static struct packet_type can_packet __r
 	.func = can_rcv,
 };
 
-static struct net_proto_family can_family_ops __read_mostly = {
+static const struct net_proto_family can_family_ops __read_mostly = {
						       ^^^^^^^^^^^^^
 	.family = PF_CAN,
 	.create = can_create,
 	.owner  = THIS_MODULE,
ACK, except this chunk: const already means read-only.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help