Fixed compiler warnings to make code compile with gcc's -pedantic switch

This commit is contained in:
adamdunkels 2007-11-17 18:01:00 +00:00
parent 607d27e0c6
commit 1e1e44a3f8
42 changed files with 313 additions and 286 deletions

View file

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: main.c,v 1.5 2007/03/22 18:59:34 adamdunkels Exp $
* $Id: main.c,v 1.6 2007/11/17 18:09:18 adamdunkels Exp $
*/
/**
@ -60,6 +60,8 @@
#include <stdio.h>
#include <sys/wait.h>
void netsim_init(void);
static int main_process = 0;
/*---------------------------------------------------------------------------*/
@ -118,7 +120,7 @@ start_node(int x, int y, int b)
/* This is the sensor process. */
main_process = 0;
srandom(getpid());
srand(getpid());
usleep(1000 * (rand() % 1000));