Fixed compiler warnings
This commit is contained in:
parent
fc237101be
commit
bddd31abf2
4 changed files with 8 additions and 11 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: shell-rime-unicast.c,v 1.1 2009/05/10 21:04:40 adamdunkels Exp $
|
* $Id: shell-rime-unicast.c,v 1.2 2009/09/09 21:06:51 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -87,7 +87,6 @@ PROCESS_THREAD(shell_unicast_send_process, ev, data)
|
||||||
int len;
|
int len;
|
||||||
const char *nextptr;
|
const char *nextptr;
|
||||||
struct unicast_msg *msg;
|
struct unicast_msg *msg;
|
||||||
char buf[30];
|
|
||||||
|
|
||||||
PROCESS_BEGIN();
|
PROCESS_BEGIN();
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: shell-sensortweet.c,v 1.1 2009/05/11 17:11:37 adamdunkels Exp $
|
* $Id: shell-sensortweet.c,v 1.2 2009/09/09 21:06:51 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -61,7 +61,6 @@ PROCESS_THREAD(sensortweet_process, ev, data)
|
||||||
{
|
{
|
||||||
char message[140];
|
char message[140];
|
||||||
char username_password[MAX_USERNAME_PASSWORD];
|
char username_password[MAX_USERNAME_PASSWORD];
|
||||||
int len;
|
|
||||||
int temp;
|
int temp;
|
||||||
uint16_t humidity;
|
uint16_t humidity;
|
||||||
uint16_t battery_indicator;
|
uint16_t battery_indicator;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: clock.c,v 1.2 2008/07/09 09:34:29 adamdunkels Exp $
|
* $Id: clock.c,v 1.3 2009/09/09 21:11:24 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -39,6 +39,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "sys/clock.h"
|
#include "sys/clock.h"
|
||||||
|
#include <time.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
@ -46,9 +47,8 @@ clock_time_t
|
||||||
clock_time(void)
|
clock_time(void)
|
||||||
{
|
{
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
struct timezone tz;
|
|
||||||
|
|
||||||
gettimeofday(&tv, &tz);
|
gettimeofday(&tv, NULL);
|
||||||
|
|
||||||
return tv.tv_sec * 1000 + tv.tv_usec / 1000;
|
return tv.tv_sec * 1000 + tv.tv_usec / 1000;
|
||||||
}
|
}
|
||||||
|
@ -57,9 +57,8 @@ unsigned long
|
||||||
clock_seconds(void)
|
clock_seconds(void)
|
||||||
{
|
{
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
struct timezone tz;
|
|
||||||
|
|
||||||
gettimeofday(&tv, &tz);
|
gettimeofday(&tv, NULL);
|
||||||
|
|
||||||
return tv.tv_sec;
|
return tv.tv_sec;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: contiki-conf.h,v 1.11 2008/10/15 09:14:25 adamdunkels Exp $
|
* @(#)$Id: contiki-conf.h,v 1.12 2009/09/09 21:11:24 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CONTIKI_CONF_H__
|
#ifndef __CONTIKI_CONF_H__
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
#define CC_CONF_FUNCTION_POINTER_ARGS 1
|
#define CC_CONF_FUNCTION_POINTER_ARGS 1
|
||||||
#define CC_CONF_FASTCALL
|
#define CC_CONF_FASTCALL
|
||||||
#define CC_CONF_VA_ARGS 1
|
#define CC_CONF_VA_ARGS 1
|
||||||
#define CC_CONF_INLINE inline
|
/*#define CC_CONF_INLINE inline*/
|
||||||
|
|
||||||
#define CCIF
|
#define CCIF
|
||||||
#define CLIF
|
#define CLIF
|
||||||
|
|
Loading…
Add table
Reference in a new issue