fix *nix compilation error

This commit is contained in:
Lysann Schlegel
2012-12-09 00:44:50 +01:00
parent a4e3140274
commit ca7c6127ac

View File

@@ -308,7 +308,7 @@ int wiiuse_os_read(struct wiimote_t* wm, byte* buf, int len) {
rc = read(wm->in_sock, buf, len);
if (r == -1) {
if (rc == -1) {
/* error reading data */
WIIUSE_ERROR("Receiving wiimote data (id %i).", wm->unid);
perror("Error Details");