[PATCH:xf86-input-acecad 3/6] Fix “initialization from incompatible pointer type” for default_options.

Cyril Brulebois kibi at debian.org
Wed May 4 17:04:09 PDT 2011


InputDriverRec's last field is a char**, not a const char**, fix this
warning accordingly:
|   CC     acecad.lo
| acecad.c:132:1: warning: initialization from incompatible pointer type [enabled by default]
| acecad.c:132:1: warning: (near initialization for 'ACECAD.default_options') [enabled by default]

Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
 src/acecad.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/acecad.c b/src/acecad.c
index 1e2f0c0..d60b3b6 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.4.4



More information about the xorg-devel mailing list