Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed to compile with pedantic C
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 28, 2011
1 parent e3ad0be commit 8d80321
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/x11/SDL_x11touch.c
Expand Up @@ -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;
Expand All @@ -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 ? */

Expand Down

0 comments on commit 8d80321

Please sign in to comment.