Mercurial > remote-gamepad-server
comparison uinput.c @ 7:6aa40a25de22
Remove debug and add an assert on the size of the received struct.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 18 Aug 2015 02:08:29 +0100 |
parents | eafcd170dc6d |
children | dec5fe6cd0d0 |
comparison
equal
deleted
inserted
replaced
6:eafcd170dc6d | 7:6aa40a25de22 |
---|---|
37 fd = open("/dev/input/uinput", O_RDWR); | 37 fd = open("/dev/input/uinput", O_RDWR); |
38 } | 38 } |
39 else fd = open(uinput_dev, O_RDWR); //from xml | 39 else fd = open(uinput_dev, O_RDWR); //from xml |
40 | 40 |
41 if(fd < 0){ | 41 if(fd < 0){ |
42 perror("open"); | |
42 fprintf(stderr, " [%d] Unable to open uinput device ; hint: 'modprobe uinput' ?!\n", curdev); | 43 fprintf(stderr, " [%d] Unable to open uinput device ; hint: 'modprobe uinput' ?!\n", curdev); |
43 return -1; | 44 return -1; |
44 } | 45 } |
45 | 46 |
46 | 47 |