From 112b76f6b96d1e796be17522ec765cccc99cbc07 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 26 Apr 2013 11:17:46 -0700 Subject: [PATCH] stream-fd: Mark 'fd_pstream_class' const. These data structures are never modified so this seems like a logical change. Signed-off-by: Ben Pfaff --- lib/stream-fd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stream-fd.c b/lib/stream-fd.c index 1b16f3e50..90d328acc 100644 --- a/lib/stream-fd.c +++ b/lib/stream-fd.c @@ -172,7 +172,7 @@ struct fd_pstream char *unlink_path; }; -static struct pstream_class fd_pstream_class; +static const struct pstream_class fd_pstream_class; static struct fd_pstream * fd_pstream_cast(struct pstream *pstream) @@ -266,7 +266,7 @@ pfd_set_dscp(struct pstream *pstream, uint8_t dscp) return 0; } -static struct pstream_class fd_pstream_class = { +static const struct pstream_class fd_pstream_class = { "pstream", false, NULL, -- 2.47.0