diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-03-19 18:17:32 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-11-24 17:37:17 +0100 |
commit | ef44803a3a8ef06635fd8efd40cd30c95972839f (patch) | |
tree | 2002486140f65caf778a35da1fb121591be26530 | |
parent | 4327e6afb8f796b6e1a25c8a98b147a0b0e081b1 (diff) | |
download | spice-ef44803a3a8ef06635fd8efd40cd30c95972839f.tar.gz spice-ef44803a3a8ef06635fd8efd40cd30c95972839f.tar.xz spice-ef44803a3a8ef06635fd8efd40cd30c95972839f.zip |
Add const to test_capability first argument
We don't modify the capabilities content, so it can be marked as const.
-rw-r--r-- | server/red_channel.c | 2 | ||||
-rw-r--r-- | server/red_channel.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/red_channel.c b/server/red_channel.c index 59043813..b06efbf5 100644 --- a/server/red_channel.c +++ b/server/red_channel.c @@ -1172,7 +1172,7 @@ void red_channel_register_client_cbs(RedChannel *channel, ClientCbs *client_cbs) } } -int test_capability(uint32_t *caps, int num_caps, uint32_t cap) +int test_capability(const uint32_t *caps, int num_caps, uint32_t cap) { uint32_t index = cap / 32; if (num_caps < index + 1) { diff --git a/server/red_channel.h b/server/red_channel.h index f9cfb95e..24d29fed 100644 --- a/server/red_channel.h +++ b/server/red_channel.h @@ -223,7 +223,7 @@ typedef struct RedChannelCapabilities { uint32_t *caps; } RedChannelCapabilities; -int test_capability(uint32_t *caps, int num_caps, uint32_t cap); +int test_capability(const uint32_t *caps, int num_caps, uint32_t cap); typedef struct RedChannelClientLatencyMonitor { int state; |