1.1 --- a/src/video/x11/SDL_x11touch.c Tue Sep 27 23:15:01 2011 -0400
1.2 +++ b/src/video/x11/SDL_x11touch.c Tue Sep 27 23:16:04 2011 -0400
1.3 @@ -41,6 +41,7 @@
1.4
1.5 char c;
1.6 int i = 0;
1.7 + int tsfd;
1.8 char line[256];
1.9 char tstr[256];
1.10 int vendor = -1,product = -1,event = -1;
1.11 @@ -51,7 +52,7 @@
1.12
1.13 sprintf(tstr,"/dev/input/event%i",event);
1.14
1.15 - int tsfd = open( tstr, O_RDONLY | O_NONBLOCK );
1.16 + tsfd = open( tstr, O_RDONLY | O_NONBLOCK );
1.17 if ( tsfd == -1 )
1.18 continue; /* Maybe not enough permissions ? */
1.19