diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-05-11 12:41:55 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-05-14 08:12:09 -0400 |
commit | 4c21e3534a0b0373258d559f50a65d0e5385b7c4 (patch) | |
tree | bb01128b2c17670708cdc5fc68982704a5b454c6 /include | |
parent | bb9feea43179ef8aba2c0a9cc1e670cb049ba90e (diff) |
hw/virtio: Pass virtio_feature_get_config_size() a const argument
The VirtIOFeature structure isn't modified, mark it const.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210511104157.2880306-2-philmd@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/virtio/virtio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index b7ece7a6a8..8bab9cfb75 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -43,7 +43,7 @@ typedef struct VirtIOFeature { size_t end; } VirtIOFeature; -size_t virtio_feature_get_config_size(VirtIOFeature *features, +size_t virtio_feature_get_config_size(const VirtIOFeature *features, uint64_t host_features); typedef struct VirtQueue VirtQueue; |