Fixed compiler warnings

This commit is contained in:
adamdunkels 2007-11-17 10:46:25 +00:00
parent 8d79ef2219
commit d9eebf7e17
4 changed files with 15 additions and 8 deletions

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: print-stats.c,v 1.2 2007/11/12 22:27:44 adamdunkels Exp $
* $Id: print-stats.c,v 1.3 2007/11/17 10:46:25 adamdunkels Exp $
*/
/**
@ -49,9 +49,9 @@
void
print_stats(void)
{
printf("S %d.%d clock %u tx %lu rx %lu rtx %lu rrx %lu rexmit %lu acktx %lu noacktx %lu ackrx %lu timedout %lu badackrx %lu toolong %lu tooshort %lu badsynch %lu badcrc %lu contentiondrop %lu sendingdrop %lu lltx %lu llrx %lu\n",
printf("S %d.%d clock %lu tx %lu rx %lu rtx %lu rrx %lu rexmit %lu acktx %lu noacktx %lu ackrx %lu timedout %lu badackrx %lu toolong %lu tooshort %lu badsynch %lu badcrc %lu contentiondrop %lu sendingdrop %lu lltx %lu llrx %lu\n",
rimeaddr_node_addr.u8[0], rimeaddr_node_addr.u8[1],
clock_time() / CLOCK_SECOND,
(unsigned long)clock_time() / CLOCK_SECOND,
rimestats.tx, rimestats.rx,
rimestats.reliabletx, rimestats.reliablerx,
rimestats.rexmit, rimestats.acktx, rimestats.noacktx,

View File

@ -28,10 +28,12 @@
*
* This file is part of the Contiki operating system.
*
* @(#)$Id: elfloader-stub.c,v 1.2 2006/12/18 14:54:04 fros4943 Exp $
* @(#)$Id: elfloader-stub.c,v 1.3 2007/11/17 10:46:41 adamdunkels Exp $
*/
#include "elfloader-arch.h"
#include <stdio.h>
static char datamemory[ELFLOADER_DATAMEMORY_SIZE];
static const char textmemory[ELFLOADER_TEXTMEMORY_SIZE] = {0};
/*---------------------------------------------------------------------------*/
@ -58,6 +60,9 @@ elfloader_arch_relocate(int fd, unsigned int sectionoffset,
char *sectionaddr,
struct elf32_rela *rela, char *addr)
{
printf("elfloader_arch_relocate: sectionoffset 0x%04x, sectionaddr %p, r_offset 0x%04x, r_info 0x%04x, r_addend 0x%04x, addr %p\n", sectionoffset, sectionaddr, rela->r_offset, rela->r_info, rela->r_addend, addr);
printf("elfloader_arch_relocate: sectionoffset 0x%04x, sectionaddr %p, r_offset 0x%04x, r_info 0x%04x, r_addend 0x%04x, addr %p\n",
sectionoffset, sectionaddr,
(unsigned int)rela->r_offset, (unsigned int)rela->r_info,
(unsigned int)rela->r_addend, addr);
}
/*---------------------------------------------------------------------------*/

View File

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: uip-fw.c,v 1.7 2007/08/22 10:47:37 ksb Exp $
* $Id: uip-fw.c,v 1.8 2007/11/17 10:46:58 adamdunkels Exp $
*/
/**
* \addtogroup uip
@ -360,7 +360,9 @@ u8_t
uip_fw_output(void)
{
struct uip_fw_netif *netif;
#if UIP_BROADCAST
const struct uip_udpip_hdr *udp = (void *)BUF;
#endif /* UIP_BROADCAST */
if(uip_len == 0) {
return UIP_FW_ZEROLEN;

View File

@ -29,7 +29,7 @@
*
* This file is part of the Contiki OS
*
* $Id: contiki-main.c,v 1.3 2007/05/22 21:33:31 oliverschmidt Exp $
* $Id: contiki-main.c,v 1.4 2007/11/17 10:47:47 adamdunkels Exp $
*
*/
@ -58,7 +58,7 @@ main(void)
procinit_init();
autostart_start(autostart_processes);
autostart_start((struct process **)autostart_processes);
uip_ipaddr(&addr, 192,168,2,2);
uip_sethostaddr(&addr);