summaryrefslogtreecommitdiff
path: root/nuttx/net/uip/uip_arptab.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-15 14:53:45 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-15 14:53:45 +0000
commit4146e9258e38aff358710951df827ab1eb63310d (patch)
tree3f9ac9233c65e3c5bfe8cdfbbac958e04680543b /nuttx/net/uip/uip_arptab.c
parent329bf67f0c4b6beb77e5856c8038a3202909be58 (diff)
downloadpx4-nuttx-4146e9258e38aff358710951df827ab1eb63310d.tar.gz
px4-nuttx-4146e9258e38aff358710951df827ab1eb63310d.tar.bz2
px4-nuttx-4146e9258e38aff358710951df827ab1eb63310d.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@2344 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/uip/uip_arptab.c')
-rw-r--r--nuttx/net/uip/uip_arptab.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/nuttx/net/uip/uip_arptab.c b/nuttx/net/uip/uip_arptab.c
index 9c0ad6c4d..b777727d4 100644
--- a/nuttx/net/uip/uip_arptab.c
+++ b/nuttx/net/uip/uip_arptab.c
@@ -45,9 +45,8 @@
#include <nuttx/config.h>
#ifdef CONFIG_NET
-#include <sys/types.h>
#include <sys/ioctl.h>
-
+#include <stdint.h>
#include <string.h>
#include <debug.h>
@@ -57,7 +56,7 @@
#include <net/uip/uip-arp.h>
/****************************************************************************
- * Definitions
+ * Pre-processor Definitions
****************************************************************************/
/****************************************************************************
@@ -71,7 +70,7 @@
/* The table of known address mappings */
static struct arp_entry g_arptable[CONFIG_NET_ARPTAB_SIZE];
-static uint8 g_arptime;
+static uint8_t g_arptime;
/****************************************************************************
* Private Functions
@@ -134,15 +133,15 @@ void uip_arp_timer(void)
* address of an existing association.
*
* Input parameters:
- * pipaddr - Refers to an IP address uint16[2]
- * ethaddr - Refers to a HW address uint8[IFHWADDRLEN]
+ * pipaddr - Refers to an IP address uint16_t[2]
+ * ethaddr - Refers to a HW address uint8_t[IFHWADDRLEN]
*
* Assumptions
* Interrupts are disabled
*
****************************************************************************/
-void uip_arp_update(uint16 *pipaddr, uint8 *ethaddr)
+void uip_arp_update(uint16_t *pipaddr, uint8_t *ethaddr)
{
struct arp_entry *tabptr = NULL;
in_addr_t ipaddr = uip_ip4addr_conv(pipaddr);
@@ -195,7 +194,7 @@ void uip_arp_update(uint16 *pipaddr, uint8 *ethaddr)
if (i == CONFIG_NET_ARPTAB_SIZE)
{
- uint8 tmpage = 0;
+ uint8_t tmpage = 0;
int j = 0;
for (i = 0; i < CONFIG_NET_ARPTAB_SIZE; ++i)
{