Fixed compiler warnings

This commit is contained in:
adamdunkels 2009-09-09 21:06:51 +00:00
parent fc237101be
commit bddd31abf2
4 changed files with 8 additions and 11 deletions

View file

@ -28,7 +28,7 @@
*
* 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;
const char *nextptr;
struct unicast_msg *msg;
char buf[30];
PROCESS_BEGIN();

View file

@ -28,7 +28,7 @@
*
* 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 username_password[MAX_USERNAME_PASSWORD];
int len;
int temp;
uint16_t humidity;
uint16_t battery_indicator;

View file

@ -28,7 +28,7 @@
*
* 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 <time.h>
#include <sys/time.h>
/*---------------------------------------------------------------------------*/
@ -46,9 +47,8 @@ clock_time_t
clock_time(void)
{
struct timeval tv;
struct timezone tz;
gettimeofday(&tv, &tz);
gettimeofday(&tv, NULL);
return tv.tv_sec * 1000 + tv.tv_usec / 1000;
}
@ -57,9 +57,8 @@ unsigned long
clock_seconds(void)
{
struct timeval tv;
struct timezone tz;
gettimeofday(&tv, &tz);
gettimeofday(&tv, NULL);
return tv.tv_sec;
}

View file

@ -28,7 +28,7 @@
*
* 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__
@ -40,7 +40,7 @@
#define CC_CONF_FUNCTION_POINTER_ARGS 1
#define CC_CONF_FASTCALL
#define CC_CONF_VA_ARGS 1
#define CC_CONF_INLINE inline
/*#define CC_CONF_INLINE inline*/
#define CCIF
#define CLIF