View Single Post
Old 11-28-2012, 11:44 AM   #185
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
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.
twobob is offline   Reply With Quote