Fixed to compile with pedantic C
authorSam Lantinga <slouken@libsdl.org>
Tue, 27 Sep 2011 23:16:04 -0400
changeset 5968 b229328c7ad4
parent 5967 ae97a61f002f
child 5969 3a041d215edc
Fixed to compile with pedantic C
src/video/x11/SDL_x11touch.c
--- a/src/video/x11/SDL_x11touch.c	Tue Sep 27 23:15:01 2011 -0400
+++ b/src/video/x11/SDL_x11touch.c	Tue Sep 27 23:16:04 2011 -0400
@@ -41,6 +41,7 @@
 
   char c;
   int i = 0;
+  int tsfd;
   char line[256];
   char tstr[256];
   int vendor = -1,product = -1,event = -1;
@@ -51,7 +52,7 @@
 
         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 ? */