commit | 09a59d709da2883cf0a8935c500c98500066a257 | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Wed Feb 03 15:27:04 2016 +0100 |
committer | Gwendal Grignou <gwendal@chromium.org> | Wed May 01 12:52:14 2019 -0700 |
tree | 91eeecf0631ebdbcbc0fa1ee0c6582af0e4709e1 | |
parent | 5bfba4370556700e959a52cb147d983965db6982 [diff] [blame] |
Constify callback structures None of the callback structures is modified at runtime, so mark them as const. This allows them to go into the read-only section. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
diff --git a/xml.c b/xml.c index 09dabc7..5e42cc4 100644 --- a/xml.c +++ b/xml.c
@@ -279,7 +279,7 @@ return xml_create_context_mem(ctx->xml, strlen(ctx->xml)); } -static struct iio_backend_ops xml_ops = { +static const struct iio_backend_ops xml_ops = { .clone = xml_clone, };