diff options
author | Ben Pfaff <blp@nicira.com> | 2013-04-26 13:25:32 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-05-03 13:29:49 -0700 |
commit | 5b7126361fd96de4b2609c64b62cb1774a1c4388 (patch) | |
tree | 928b784dc5063f65bd951e2f2f14972f099b00ce /lib/vconn-stream.c | |
parent | a00d4bd03640dff91d3d73a063b6dde91fe52cd1 (diff) | |
download | openvswitch-5b7126361fd96de4b2609c64b62cb1774a1c4388.tar.gz |
vconn: Mark class structures as const.
These data structures are never modified so it seems logical for them
to be const.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/vconn-stream.c')
-rw-r--r-- | lib/vconn-stream.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/vconn-stream.c b/lib/vconn-stream.c index 613b92cfb..e91d92c08 100644 --- a/lib/vconn-stream.c +++ b/lib/vconn-stream.c @@ -46,7 +46,7 @@ struct vconn_stream int n_packets; }; -static struct vconn_class stream_vconn_class; +static const struct vconn_class stream_vconn_class; static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(10, 25); @@ -296,7 +296,7 @@ struct pvconn_pstream struct pstream *pstream; }; -static struct pvconn_class pstream_pvconn_class; +static const struct pvconn_class pstream_pvconn_class; static struct pvconn_pstream * pvconn_pstream_cast(struct pvconn *pvconn) @@ -390,16 +390,16 @@ pvconn_pstream_wait(struct pvconn *pvconn) pvconn_pstream_wait \ } -static struct vconn_class stream_vconn_class = STREAM_INIT("stream"); -static struct pvconn_class pstream_pvconn_class = PSTREAM_INIT("pstream"); +static const struct vconn_class stream_vconn_class = STREAM_INIT("stream"); +static const struct pvconn_class pstream_pvconn_class = PSTREAM_INIT("pstream"); -struct vconn_class tcp_vconn_class = STREAM_INIT("tcp"); -struct pvconn_class ptcp_pvconn_class = PSTREAM_INIT("ptcp"); +const struct vconn_class tcp_vconn_class = STREAM_INIT("tcp"); +const struct pvconn_class ptcp_pvconn_class = PSTREAM_INIT("ptcp"); -struct vconn_class unix_vconn_class = STREAM_INIT("unix"); -struct pvconn_class punix_pvconn_class = PSTREAM_INIT("punix"); +const struct vconn_class unix_vconn_class = STREAM_INIT("unix"); +const struct pvconn_class punix_pvconn_class = PSTREAM_INIT("punix"); #ifdef HAVE_OPENSSL -struct vconn_class ssl_vconn_class = STREAM_INIT("ssl"); -struct pvconn_class pssl_pvconn_class = PSTREAM_INIT("pssl"); +const struct vconn_class ssl_vconn_class = STREAM_INIT("ssl"); +const struct pvconn_class pssl_pvconn_class = PSTREAM_INIT("pssl"); #endif |