InputDriverRec's default_options is char **, without const.

Fix build failure with CFLAGS="-Wall -Werror":
|   CC     acecad.lo
| cc1: warnings being treated as errors
| acecad.c:132: error: initialization from incompatible pointer type

Signed-off-by: Cyril Brulebois <[email protected]>
---
 src/acecad.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Got confused while git stashing, the previous patch had static non-sense.

diff --git a/src/acecad.c b/src/acecad.c
index 6259f21..844141c 100644
--- a/src/acecad.c
+++ b/src/acecad.c
@@ -106,7 +106,7 @@
 /* max number of input events to read in one read call */
 #define MAX_EVENTS 50
 
-static const char *default_options[] =
+static char *default_options[] =
 {
        "BaudRate", "9600",
        "StopBits", "1",
-- 
1.7.2.3

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to