Blame SOURCES/0038-Add-const-to-test_capability-first-argument.patch

2be4b2
From 17fd07ff2fd287fff6cc866a308097e75cb968f5 Mon Sep 17 00:00:00 2001
2be4b2
From: Christophe Fergeau <cfergeau@redhat.com>
2be4b2
Date: Wed, 19 Mar 2014 18:17:32 +0100
2be4b2
Subject: [PATCH 1/3] Add const to test_capability first argument
2be4b2
2be4b2
We don't modify the capabilities content, so it can be marked as const.
2be4b2
---
2be4b2
 server/red_channel.c | 2 +-
2be4b2
 server/red_channel.h | 2 +-
2be4b2
 2 files changed, 2 insertions(+), 2 deletions(-)
2be4b2
2be4b2
diff --git a/server/red_channel.c b/server/red_channel.c
2be4b2
index 5df8f14..449e628 100644
2be4b2
--- a/server/red_channel.c
2be4b2
+++ b/server/red_channel.c
2be4b2
@@ -1159,7 +1159,7 @@ void red_channel_register_client_cbs(RedChannel *channel, ClientCbs *client_cbs)
2be4b2
     }
2be4b2
 }
2be4b2
 
2be4b2
-int test_capabilty(uint32_t *caps, int num_caps, uint32_t cap)
2be4b2
+int test_capabilty(const uint32_t *caps, int num_caps, uint32_t cap)
2be4b2
 {
2be4b2
     uint32_t index = cap / 32;
2be4b2
     if (num_caps < index + 1) {
2be4b2
diff --git a/server/red_channel.h b/server/red_channel.h
2be4b2
index 9e54dce..58109d5 100644
2be4b2
--- a/server/red_channel.h
2be4b2
+++ b/server/red_channel.h
2be4b2
@@ -223,7 +223,7 @@ typedef struct RedChannelCapabilities {
2be4b2
     uint32_t *caps;
2be4b2
 } RedChannelCapabilities;
2be4b2
 
2be4b2
-int test_capabilty(uint32_t *caps, int num_caps, uint32_t cap);
2be4b2
+int test_capabilty(const uint32_t *caps, int num_caps, uint32_t cap);
2be4b2
 
2be4b2
 typedef struct RedChannelClientLatencyMonitor {
2be4b2
     int state;
2be4b2
-- 
2be4b2
2.4.4
2be4b2