[PATCH:xauth] Work around "error: assignment discards qualifiers from pointer target type"
Thomas Klausner
wiz at NetBSD.org
Sun Jun 2 12:22:20 PDT 2013
Use __UNCONST where available.
XXX: This should be fixed in a better way instead.
---
process.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/process.c b/process.c
index 283b4a1..928941f 100644
--- a/process.c
+++ b/process.c
@@ -1894,7 +1894,10 @@ do_generate(const char *inputfilename, int lineno, int argc, const char **argv)
auth_in->name = DEFAULT_PROTOCOL;
}
else
- auth_in->name = protoname;
+#ifndef __UNCONST
+# define __UNCONST(x) x
+#endif
+ auth_in->name = __UNCONST(protoname);
auth_in->name_length = strlen(auth_in->name);
auth_in->data = authdata;
auth_in->data_length = authdatalen;
--
1.8.2.3
More information about the xorg-devel
mailing list