11-28-2012, 11:44 AM
|
#185
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Issues with casting
Spoiler:
while (read(inputfds[c], &iev, sizeof(struct input_event))
== sizeof(struct input_event)) {
event_buffer = (unsigned char*)&iev;
if (iev.type == EV_KEY || event_buffer[0x08] == 0x03 ) {
Quote:
sys/linux/kindleinput.c:92: error: incompatible types in assignment
|
??? grr Syntax unsigned char?
meh. casting. meh.
I have also had
Quote:
sys/linux/kindleinput.c:92: error: cannot convert to a pointer type
|
Hmm.. goes to read up on casting. in c...
Last edited by twobob; 11-28-2012 at 01:09 PM.
|
|
|