fix *nix compilation

This commit is contained in:
Lysann Schlegel
2012-11-15 10:54:17 +01:00
parent ad79a2ff53
commit 156d89ab16
2 changed files with 3 additions and 3 deletions

View File

@@ -51,7 +51,6 @@
#include <stdlib.h> /* for free, malloc */
#include <string.h> /* for memcpy, memset */
static void clear_dirty_reads(struct wiimote_t* wm);
static void event_data_read(struct wiimote_t* wm, byte* msg);
static void event_data_write(struct wiimote_t *wm, byte *msg);
static void event_status(struct wiimote_t* wm, byte* msg);
@@ -141,7 +140,7 @@ void idle_cycle(struct wiimote_t* wm) {
*
* @param wm Pointer to a wiimote_t structure.
*/
static void clear_dirty_reads(struct wiimote_t* wm) {
void clear_dirty_reads(struct wiimote_t* wm) {
struct read_req_t* req = wm->read_req;
while (req && req->dirty) {

View File

@@ -56,8 +56,9 @@ void handshake_expansion(struct wiimote_t* wm, byte* data, uint16_t len);
void disable_expansion(struct wiimote_t* wm);
void propagate_event(struct wiimote_t* wm, byte event, byte* msg);
void idle_cycle(struct wiimote_t* wm);
void clear_dirty_reads(struct wiimote_t* wm);
/** @} */
#endif /* EVENTS_H_INCLUDED */