[PATCH xf86-input-acecad v2] Fix type for default options.

Cyril Brulebois kibi at debian.org
Wed Jan 19 12:39:21 PST 2011


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 <kibi at debian.org>
---
 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



More information about the xorg-devel mailing list