diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-03-13 22:38:43 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-03-22 17:16:38 +0000 |
commit | 561bca469d3ade1ff14faddaf70bf12dcdc6aa74 (patch) | |
tree | 66223026091edaf993098d01c4f465b40cac084d /hw | |
parent | 4fb31e4824d46edc80bb49b4065152899faa5ac6 (diff) |
hw/xwin: Fix const discarded warning in winGenerateAuthorization()
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 <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xwin/winauth.c | 4 |
1 files 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, |