diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2014-01-27 03:23:32 +0400 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2014-01-27 03:23:32 +0400 |
commit | 4b29680bbf24701de0920a386d80735eec0c1227 (patch) | |
tree | a5725a751274747a6fb2de47fc7f7d8fa39289ad | |
parent | 690639ca34d33b322a638ff8a08a25766bb50da5 (diff) |
"No warnings" fixes
-rw-r--r-- | wiimote.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) |