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

Cyril Brulebois kibi at debian.org
Wed Jan 19 12:17:29 PST 2011


InputDriverRec's default_options is char **, without const. Also,
declare it static, it's not used outside this file.

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(-)

I know it's not really maintained, but oh well, two-minute fix…

diff --git a/src/acecad.c b/src/acecad.c
index 6259f21..c5e1611 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[] =
+char *default_options[] =
 {
 	"BaudRate", "9600",
 	"StopBits", "1",
-- 
1.7.2.3



More information about the xorg-devel mailing list