removed warnings
This commit is contained in:
parent
4436819336
commit
6f862c4506
2 changed files with 20 additions and 24 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: radio-uip-uaodv.c,v 1.7 2007/10/23 12:16:13 fros4943 Exp $
|
||||
* @(#)$Id: radio-uip-uaodv.c,v 1.8 2007/11/25 22:45:04 fros4943 Exp $
|
||||
*/
|
||||
|
||||
#include "radio-uip-uaodv.h"
|
||||
|
@ -189,14 +189,12 @@ receiver(const struct radio_driver *d)
|
|||
/* Send ack as soon as possible */
|
||||
u16_t crc;
|
||||
crc = radio_uip_calc_crc(&uip_buf[UIP_LLH_LEN], uip_len);
|
||||
process_post(&radio_uip_process, EVENT_SEND_ACK, crc);
|
||||
process_post(&radio_uip_process, EVENT_SEND_ACK, (void*) (u32_t) crc);
|
||||
}
|
||||
|
||||
/* Strip header and receive packet */
|
||||
uip_len = radio_uip_uaodv_remove_header(&uip_buf[UIP_LLH_LEN], uip_len);
|
||||
tcpip_input();
|
||||
|
||||
return;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
u8_t
|
||||
|
@ -206,7 +204,7 @@ radio_uip_uaodv_send(void)
|
|||
|
||||
/* Transmit broadcast packets without header */
|
||||
if (radio_uip_uaodv_is_broadcast(&((struct uip_udpip_hdr *)&uip_buf[UIP_LLH_LEN])->destipaddr)) {
|
||||
return radio_uip_buffer_outgoing_packet(&uip_buf[UIP_LLH_LEN], uip_len, &uip_broadcast_addr, 1);
|
||||
return radio_uip_buffer_outgoing_packet(&uip_buf[UIP_LLH_LEN], uip_len, (void*) &uip_broadcast_addr, 1);
|
||||
}
|
||||
|
||||
/* Transmit uAODV packets with headers but without using route table */
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: log.c,v 1.3 2007/05/18 13:50:08 fros4943 Exp $
|
||||
* $Id: log.c,v 1.4 2007/11/25 22:45:32 fros4943 Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -42,15 +42,6 @@ char simLoggedData[MAX_LOG_LENGTH];
|
|||
int simLoggedLength;
|
||||
char simLoggedFlag;
|
||||
|
||||
void simlog(const char *message);
|
||||
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
void
|
||||
log_message(const char *part1, const char *part2)
|
||||
{
|
||||
simlog(part1);
|
||||
simlog(part2);
|
||||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
void
|
||||
simlog(const char *message)
|
||||
|
@ -66,6 +57,13 @@ simlog(const char *message)
|
|||
simLoggedFlag = 1;
|
||||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
void
|
||||
log_message(const char *part1, const char *part2)
|
||||
{
|
||||
simlog(part1);
|
||||
simlog(part2);
|
||||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
static void
|
||||
doInterfaceActionsBeforeTick(void)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue