From dc185c66b8b0648fe068fdbeaedabc0e24cb4e4b Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 28 May 2008 10:49:34 +0000 Subject: changed classname to akawiiremote so that I don't have to deal with the hexloader svn path=/trunk/externals/io/; revision=9931 --- aka.wiiremote/aka.wiiremote.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'aka.wiiremote/aka.wiiremote.c') diff --git a/aka.wiiremote/aka.wiiremote.c b/aka.wiiremote/aka.wiiremote.c index d8b12cb..0831f44 100644 --- a/aka.wiiremote/aka.wiiremote.c +++ b/aka.wiiremote/aka.wiiremote.c @@ -81,7 +81,7 @@ char nunchukStr[] = "nunchuk"; char classicStr[] = "classic"; #ifdef PD -void setup_aka0x2ewiiremote() +void akawiiremote_setup() #else /* Max */ void main() #endif /* PD */ @@ -108,7 +108,7 @@ void main() #ifdef PD post("\tPd port by Hans-Christoph Steiner"); - akawiiremote_class = class_new(gensym("aka.wiiremote"), + akawiiremote_class = class_new(gensym("akawiiremote"), (t_newmethod)akawiiremote_new, (t_method)akawiiremote_free, sizeof(t_akawiiremote), @@ -597,10 +597,10 @@ void *akawiiremote_new(t_symbol *s, short ac, t_atom *av) atom_string(av, x->address, MAXPDSTRING-1); IOReturn result = kIOReturnSuccess; - mach_port_t masterPort = NULL; + mach_port_t masterPort = (mach_port_t) NULL; result = IOMasterPort (bootstrap_port, &masterPort); if (kIOReturnSuccess != result) - pd_error("IOMasterPort error with bootstrap_port, error %d", result); + pd_error(x, "[akawiiremote] IOMasterPort error with bootstrap_port, error %d", result); else { // Create a notification port and add its run loop event source to our run loop -- cgit v1.2.1