Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/nes2wii.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2014-01-27 03:23:32 +0400
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2014-01-27 03:23:32 +0400
commit4b29680bbf24701de0920a386d80735eec0c1227 (patch)
treea5725a751274747a6fb2de47fc7f7d8fa39289ad
parent690639ca34d33b322a638ff8a08a25766bb50da5 (diff)
"No warnings" fixes
-rw-r--r--wiimote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiimote.c b/wiimote.c
index ea5cd43..795db69 100644
--- a/wiimote.c
+++ b/wiimote.c
@@ -96,7 +96,7 @@ void wm_gentabs()
tkey[5] = ((wm_ror8((ans[5] ^ t0[7]), (t0[8] % 8)) - t0[5]) ^ t0[9]);
// compare with actual key
- if(memcmp(tkey, wm_key, 6) == 0) break; // if match, then use this idx
+ if(memcmp(tkey, (void*)wm_key, 6) == 0) break; // if match, then use this idx
}
// generate encryption from idx key and rand
@@ -167,7 +167,7 @@ void wm_slaveRx(unsigned char addr, unsigned char l)
void wm_newaction(unsigned char * d)
{
// load button data from user application
- memcpy(twi_reg, d, 6);
+ memcpy((void*)twi_reg, d, 6);
}
void wm_init(unsigned char * id, unsigned char * t, unsigned char * cal_data, void (*function)(void))