[Spice-commits] server/agent-msg-filter.c server/agent-msg-filter.h
Frediano Ziglio
fziglio at kemper.freedesktop.org
Mon Sep 12 12:22:52 UTC 2016
server/agent-msg-filter.c | 2 +-
server/agent-msg-filter.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5d6e3ff1e9192d4c316b10c4b3238a7943fe5acf
Author: Pavel Grunt <pgrunt at redhat.com>
Date: Mon Sep 12 14:13:49 2016 +0200
agent-filter: Constantify parameter
Filter should not modify data
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/agent-msg-filter.c b/server/agent-msg-filter.c
index 3e5b225..a11f624 100644
--- a/server/agent-msg-filter.c
+++ b/server/agent-msg-filter.c
@@ -49,7 +49,7 @@ void agent_msg_filter_init(AgentMsgFilter *filter,
}
int agent_msg_filter_process_data(AgentMsgFilter *filter,
- uint8_t *data, uint32_t len)
+ const uint8_t *data, uint32_t len)
{
struct VDAgentMessage msg_header;
diff --git a/server/agent-msg-filter.h b/server/agent-msg-filter.h
index e7eef1a..d61f8d4 100644
--- a/server/agent-msg-filter.h
+++ b/server/agent-msg-filter.h
@@ -50,6 +50,6 @@ void agent_msg_filter_config(AgentMsgFilter *filter,
gboolean copy_paste, gboolean file_xfer,
gboolean use_client_monitors_config);
int agent_msg_filter_process_data(AgentMsgFilter *filter,
- uint8_t *data, uint32_t len);
+ const uint8_t *data, uint32_t len);
#endif
More information about the Spice-commits
mailing list