From 561bca469d3ade1ff14faddaf70bf12dcdc6aa74 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Thu, 13 Mar 2014 22:38:43 +0000 Subject: [PATCH] hw/xwin: Fix const discarded warning in winGenerateAuthorization() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix const discarded warning in winGenerateAuthorization() in !XCSECURITY case In function ‘winGenerateAuthorization’: hw/xwin/winauth.c:123:38: warning: passing argument 2 of ‘GenerateAuthorization’ discards ‘const’ qualifier from pointer target type [enabled by default] hw/xwin/winauth.c:99:1: note: expected ‘char *’ but argument is of type ‘const char *’ Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison --- hw/xwin/winauth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xwin/winauth.c b/hw/xwin/winauth.c index a6a7366a4..7efa1c00f 100644 --- a/hw/xwin/winauth.c +++ b/hw/xwin/winauth.c @@ -97,9 +97,9 @@ MitGenerateCookie(unsigned data_length, static XID GenerateAuthorization(unsigned name_length, - char *name, + const char *name, unsigned data_length, - char *data, + const char *data, unsigned *data_length_return, char **data_return) { return MitGenerateCookie(data_length, data,