Fixed compiled warnings

This commit is contained in:
adamdunkels 2008-07-03 09:52:15 +00:00
parent 09f5b6d2f5
commit 7ed816840e
2 changed files with 6 additions and 4 deletions

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: shell-rime.c,v 1.4 2008/07/02 14:08:06 adamdunkels Exp $
* $Id: shell-rime.c,v 1.5 2008/07/03 09:52:15 adamdunkels Exp $
*/
/**
@ -505,7 +505,7 @@ static const struct uc_callbacks uc_callbacks = {recv_uc};
#endif /* WITH_DEBUG_COMMANDS */
/*---------------------------------------------------------------------------*/
static void
recv_collect(rimeaddr_t *originator, u8_t seqno, u8_t hops)
recv_collect(const rimeaddr_t *originator, u8_t seqno, u8_t hops)
{
struct collect_msg *collect_msg;
rtimer_clock_t latency;

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: shell-sky.c,v 1.7 2008/07/02 14:14:37 adamdunkels Exp $
* $Id: shell-sky.c,v 1.8 2008/07/03 09:52:15 adamdunkels Exp $
*/
/**
@ -49,6 +49,8 @@
#include "dev/light.h"
#include "dev/sht11.h"
#include "cfs/cfs-coffee.h"
#include "net/rime/timesynch.h"
#include <stdio.h>
@ -390,7 +392,7 @@ PROCESS_THREAD(shell_powerconv_process, ev, data)
static void
printpowergraph(struct power_msg *msg)
{
int i, j;
int i;
unsigned long avg_power;
unsigned long time;
char buf[MAX_POWERGRAPH];