aboutsummaryrefslogtreecommitdiff
path: root/aka.wiiremote/aka.wiiremote.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-05-28 10:49:34 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:08:26 +0200
commitdc185c66b8b0648fe068fdbeaedabc0e24cb4e4b (patch)
tree6e7f9bc6c8232e79b8095d66274ca0394b9e1b8b /aka.wiiremote/aka.wiiremote.c
parent430e10e0813bc4a39f155640fdf70a76a03fb191 (diff)
changed classname to akawiiremote so that I don't have to deal with the hexloader
svn path=/trunk/externals/io/; revision=9931
Diffstat (limited to 'aka.wiiremote/aka.wiiremote.c')
-rw-r--r--aka.wiiremote/aka.wiiremote.c8
1 files changed, 4 insertions, 4 deletions
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