Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed to compile with pedantic C

  • Loading branch information
slouken committed Sep 28, 2011
1 parent e3ad0be commit 8d8032130bd523f55725bb8ddd0678a88775aee2
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 ? */

0 comments on commit 8d80321

Please sign in to comment.