From 8d8032130bd523f55725bb8ddd0678a88775aee2 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 27 Sep 2011 23:16:04 -0400 Subject: [PATCH] Fixed to compile with pedantic C --- src/video/x11/SDL_x11touch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11touch.c b/src/video/x11/SDL_x11touch.c index adc16ce04..327648d7b 100644 --- a/src/video/x11/SDL_x11touch.c +++ b/src/video/x11/SDL_x11touch.c @@ -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 ? */