Commit dead491b authored by Sam Lantinga's avatar Sam Lantinga

Fixed to compile with pedantic C

parent e934e97c
......@@ -41,6 +41,7 @@ X11_InitTouch(_THIS)
char c;
int i = 0;
int tsfd;
char line[256];
char tstr[256];
int vendor = -1,product = -1,event = -1;
......@@ -51,7 +52,7 @@ X11_InitTouch(_THIS)
sprintf(tstr,"/dev/input/event%i",event);
int tsfd = open( tstr, O_RDONLY | O_NONBLOCK );
tsfd = open( tstr, O_RDONLY | O_NONBLOCK );
if ( tsfd == -1 )
continue; /* Maybe not enough permissions ? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment