From de5703237a8973502fdd4c87e993a998be192863 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 15 Dec 2009 15:57:25 +0000 Subject: 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@2346 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/net/send.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'nuttx/net/send.c') diff --git a/nuttx/net/send.c b/nuttx/net/send.c index 0ebc864f8..b31723293 100644 --- a/nuttx/net/send.c +++ b/nuttx/net/send.c @@ -42,7 +42,7 @@ #include #include - +#include #include #include #include @@ -73,13 +73,13 @@ struct send_s FAR struct socket *snd_sock; /* Points to the parent socket structure */ FAR struct uip_callback_s *snd_cb; /* Reference to callback instance */ sem_t snd_sem; /* Used to wake up the waiting thread */ - FAR const uint8 *snd_buffer; /* Points to the buffer of data to send */ + FAR const uint8_t *snd_buffer; /* Points to the buffer of data to send */ size_t snd_buflen; /* Number of bytes in the buffer to send */ ssize_t snd_sent; /* The number of bytes sent */ - uint32 snd_isn; /* Initial sequence number */ - uint32 snd_acked; /* The number of bytes acked */ + uint32_t snd_isn; /* Initial sequence number */ + uint32_t snd_acked; /* The number of bytes acked */ #if defined(CONFIG_NET_SOCKOPTS) && !defined(CONFIG_DISABLE_CLOCK) - uint32 snd_time; /* last send time for determining timeout */ + uint32_t snd_time; /* last send time for determining timeout */ #endif }; @@ -104,9 +104,9 @@ struct send_s * ****************************************************************************/ -static uint32 send_getisn(struct uip_conn *conn) +static uint32_t send_getisn(struct uip_conn *conn) { - uint32 tmp; + uint32_t tmp; memcpy(&tmp, conn->snd_nxt, 4); return ntohl(tmp); } @@ -128,9 +128,9 @@ static uint32 send_getisn(struct uip_conn *conn) * ****************************************************************************/ -static uint32 send_getackno(struct uip_driver_s *dev) +static uint32_t send_getackno(struct uip_driver_s *dev) { - uint32 tmp; + uint32_t tmp; memcpy(&tmp, TCPBUF->ackno, 4); return ntohl(tmp); } @@ -195,8 +195,8 @@ static inline int send_timeout(struct send_s *pstate) * ****************************************************************************/ -static uint16 send_interrupt(struct uip_driver_s *dev, void *pvconn, - void *pvpriv, uint16 flags) +static uint16_t send_interrupt(struct uip_driver_s *dev, void *pvconn, + void *pvpriv, uint16_t flags) { struct uip_conn *conn = (struct uip_conn*)pvconn; struct send_s *pstate = (struct send_s *)pvpriv; @@ -283,7 +283,7 @@ static uint16 send_interrupt(struct uip_driver_s *dev, void *pvconn, { /* Get the amount of data that we can send in the next packet */ - uint32 sndlen = pstate->snd_buflen - pstate->snd_sent; + uint32_t sndlen = pstate->snd_buflen - pstate->snd_sent; if (sndlen > uip_mss(conn)) { sndlen = uip_mss(conn); -- cgit v1.2.3