From 9763c375252011cc1f6cde69828654f5b3746984 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Wed, 14 Sep 2011 09:36:20 -0500 Subject: [PATCH] a little spacing cleanup --- src/events.c | 4 ++-- src/io_nix.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/events.c b/src/events.c index 8bf0801..7f9d0da 100644 --- a/src/events.c +++ b/src/events.c @@ -683,7 +683,7 @@ void handshake_expansion(struct wiimote_t* wm, byte* data, uint16_t len) { wiiuse_write_data(wm, WM_EXP_MEM_ENABLE, &buf, 1); /* get the calibration data */ - handshake_buf = (byte *)malloc(EXP_HANDSHAKE_LEN * sizeof(byte)); + handshake_buf = (byte *)malloc(EXP_HANDSHAKE_LEN * sizeof(byte)); wiiuse_read_data_cb(wm, handshake_expansion, handshake_buf, WM_EXP_MEM_CALIBR, EXP_HANDSHAKE_LEN); /* tell the wiimote to send expansion data */ @@ -883,7 +883,7 @@ static int state_changed(struct wiimote_t* wm) { CROSS_THRESH_XYZ(wm->lstate.accel, wm->accel, wm->accel_threshold); /* orientation */ - CROSS_THRESH(wm->lstate.orient, wm->orient, wm->orient_threshold); + CROSS_THRESH(wm->lstate.orient, wm->orient, wm->orient_threshold); } /* expansion */ diff --git a/src/io_nix.c b/src/io_nix.c index 7bbc557..50f034e 100644 --- a/src/io_nix.c +++ b/src/io_nix.c @@ -192,7 +192,7 @@ static int wiiuse_connect_single(struct wiimote_t* wm, char* address) { bacmp(bdaddr, BDADDR_ANY);*/ /* use address of device discovered */ addr.l2_bdaddr = *bdaddr; - + } /*