virtio: make config_ops const

It is just a table of function pointers, make it const for cleanliness and security
reasons.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Stephen Hemminger
2013-02-10 15:57:38 +10:30
committed by Rusty Russell
parent 0d34cc2d6d
commit 9350393239
6 changed files with 6 additions and 6 deletions

View File

@@ -396,7 +396,7 @@ static const char *lg_bus_name(struct virtio_device *vdev)
}
/* The ops structure which hooks everything together. */
static struct virtio_config_ops lguest_config_ops = {
static const struct virtio_config_ops lguest_config_ops = {
.get_features = lg_get_features,
.finalize_features = lg_finalize_features,
.get = lg_get,