summaryrefslogtreecommitdiff
path: root/lib/stream-fd.c
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2011-11-24 10:22:22 +0900
committerBen Pfaff <blp@nicira.com>2011-11-23 21:18:06 -0800
commitda327b18bdbd36ad3dc465e07f6700795c684b14 (patch)
tree7231c18450c4b0bcc95300009d650bd0a23b2931 /lib/stream-fd.c
parent52a90c29ab472076fb8f20fba4f847350268e01e (diff)
downloadopenvswitch-da327b18bdbd36ad3dc465e07f6700795c684b14.tar.gz
stream: Make classes const
The classes are never modified and may be declared constant.
Diffstat (limited to 'lib/stream-fd.c')
-rw-r--r--lib/stream-fd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stream-fd.c b/lib/stream-fd.c
index 2026db6af..7bf5ebd4d 100644
--- a/lib/stream-fd.c
+++ b/lib/stream-fd.c
@@ -45,7 +45,7 @@ struct stream_fd
char *unlink_path;
};
-static struct stream_class stream_fd_class;
+static const struct stream_class stream_fd_class;
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(10, 25);
@@ -154,7 +154,7 @@ fd_wait(struct stream *stream, enum stream_wait_type wait)
}
}
-static struct stream_class stream_fd_class = {
+static const struct stream_class stream_fd_class = {
"fd", /* name */
NULL, /* open */
fd_close, /* close */