[tuxdroid-svn] r348 - daemon/trunk/libs
Status: Beta
Brought to you by:
ks156
From: neimad <c2m...@c2...> - 2007-06-04 19:59:09
|
Author: neimad Date: 2007-06-04 21:58:56 +0200 (Mon, 04 Jun 2007) New Revision: 348 Modified: daemon/trunk/libs/USBDaemon_status_table.c daemon/trunk/libs/USBDaemon_status_table.h Log: * Removed size of array parameter in the following functions: update_raw_status_table(), update_system_status_table(), update_version_table(), update_revision_table(), update_author_table(), update_sound_flash_count(), update_ir() Still have to fix TUX_RECV_LENGTH... Modified: daemon/trunk/libs/USBDaemon_status_table.c =================================================================== --- daemon/trunk/libs/USBDaemon_status_table.c 2007-06-04 18:36:38 UTC (rev 347) +++ daemon/trunk/libs/USBDaemon_status_table.c 2007-06-04 19:58:56 UTC (rev 348) @@ -63,7 +63,7 @@ /* update_raw_status_table() */ /************************************************************************ */ -void update_raw_status_table(unsigned char new_status[TUX_RECV_LENGTH]) +void update_raw_status_table(const unsigned char *new_status) { switch (new_status[0]) { @@ -142,7 +142,7 @@ /* update_system_status_table() */ /************************************************************************ */ -void update_system_status_table(unsigned char new_status[4]) +void update_system_status_table(const unsigned char *new_status) { tcp_frame_t tcp_frame; unsigned char i; @@ -180,7 +180,7 @@ /* update_version_table() */ /************************************************************************ */ -void update_version_table(unsigned char new_status[4]) +void update_version_table(const unsigned char *new_status) { unsigned long tmp; version_t *hw_ver; @@ -198,7 +198,7 @@ /* update_revision_table() */ /************************************************************************ */ -void update_revision_table(unsigned char new_status[4]) +void update_revision_table(const unsigned char *new_status) { unsigned long tmp; revision_t *hw_rev; @@ -215,7 +215,7 @@ /* update_author_table() */ /************************************************************************ */ -void update_author_table(unsigned char new_status[4]) +void update_author_table(const unsigned char *new_status) { unsigned long tmp; author_t *hw_aut; @@ -232,7 +232,7 @@ /* update_sound_flash_count() */ /************************************************************************ */ -void update_sound_flash_count(unsigned char new_status[4]) +void update_sound_flash_count(const unsigned char *new_status) { sound_flash_count = new_status[1]; } @@ -242,7 +242,7 @@ /* update_ir() */ /************************************************************************ */ -void update_ir(unsigned char new_status[4]) +void update_ir(const unsigned char *new_status) { unsigned char code; unsigned char toggle; Modified: daemon/trunk/libs/USBDaemon_status_table.h =================================================================== --- daemon/trunk/libs/USBDaemon_status_table.h 2007-06-04 18:36:38 UTC (rev 347) +++ daemon/trunk/libs/USBDaemon_status_table.h 2007-06-04 19:58:56 UTC (rev 348) @@ -246,17 +246,17 @@ extern struct connection_status_t connection_status; /*_____________________ F U N C T I O N S __________________________________*/ -extern void update_raw_status_table(unsigned char new_status[]); -extern void update_system_status_table(unsigned char new_status[]); +extern void update_raw_status_table(const unsigned char *new_status); +extern void update_system_status_table(const unsigned char *new_status); -extern void update_version_table(unsigned char new_status[4]); -extern void update_revision_table(unsigned char new_status[4]); +extern void update_version_table(const unsigned char *new_status); +extern void update_revision_table(const unsigned char *new_status); -extern void update_author_table(unsigned char new_status[4]); +extern void update_author_table(const unsigned char *new_status); -extern void update_sound_flash_count(unsigned char new_status[4]); +extern void update_sound_flash_count(const unsigned char *new_status); -extern void update_ir(unsigned char new_status[4]); +extern void update_ir(const unsigned char *new_status); extern void pong_event(unsigned char pong_number, unsigned char pong_received); |