diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-16 14:52:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-16 14:52:56 +0000 |
commit | f66691d238faf4858c8c9f5c5a53f118a1e1ab8e (patch) | |
tree | a3f1c8e68cea0205b6f0138ab14e24960b922c1d /nuttx/arch/sim/src/up_uipdriver.c | |
parent | 5e50f40f37be6fd057b050e75aa2f4dcc9529b3c (diff) | |
download | px4-nuttx-f66691d238faf4858c8c9f5c5a53f118a1e1ab8e.tar.gz px4-nuttx-f66691d238faf4858c8c9f5c5a53f118a1e1ab8e.tar.bz2 px4-nuttx-f66691d238faf4858c8c9f5c5a53f118a1e1ab8e.zip |
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2356 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/sim/src/up_uipdriver.c')
-rw-r--r-- | nuttx/arch/sim/src/up_uipdriver.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/nuttx/arch/sim/src/up_uipdriver.c b/nuttx/arch/sim/src/up_uipdriver.c index 24f8f204e..3c2a2d578 100644 --- a/nuttx/arch/sim/src/up_uipdriver.c +++ b/nuttx/arch/sim/src/up_uipdriver.c @@ -1,7 +1,7 @@ /**************************************************************************** * up_uipdriver.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Based on code from uIP which also has a BSD-like license: @@ -45,7 +45,9 @@ ****************************************************************************/ #include <nuttx/config.h> -#include <sys/types.h> + +#include <stdint.h> +#include <stdbool.h> #include <string.h> #include <sched.h> #include <nuttx/net.h> @@ -69,8 +71,8 @@ struct timer { - uint32 interval; - uint32 start; + uint32_t interval; + uint32_t start; }; /**************************************************************************** @@ -94,7 +96,7 @@ static void timer_set(struct timer *t, unsigned int interval) t->start = up_getwalltime(); } -static boolean timer_expired( struct timer *t ) +static bool timer_expired( struct timer *t ) { return (up_getwalltime() - t->start) >= t->interval; } @@ -107,7 +109,7 @@ void timer_reset(struct timer *t) #ifdef CONFIG_NET_PROMISCUOUS # define up_comparemac(a,b) (0) #else -static inline int up_comparemac(uint8 *paddr1, struct ether_addr *paddr2) +static inline int up_comparemac(uint8_t *paddr1, struct ether_addr *paddr2) { return memcmp(paddr1, paddr2->ether_addr_octet, ETHER_ADDR_LEN); } |