diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-15 14:53:45 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-15 14:53:45 +0000 |
commit | 4146e9258e38aff358710951df827ab1eb63310d (patch) | |
tree | 3f9ac9233c65e3c5bfe8cdfbbac958e04680543b /nuttx/net/uip/uip_tcpcallback.c | |
parent | 329bf67f0c4b6beb77e5856c8038a3202909be58 (diff) | |
download | px4-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_tcpcallback.c')
-rw-r--r-- | nuttx/net/uip/uip_tcpcallback.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/nuttx/net/uip/uip_tcpcallback.c b/nuttx/net/uip/uip_tcpcallback.c index e6983c971..3f6d04c06 100644 --- a/nuttx/net/uip/uip_tcpcallback.c +++ b/nuttx/net/uip/uip_tcpcallback.c @@ -40,7 +40,7 @@ #include <nuttx/config.h> #if defined(CONFIG_NET) && defined(CONFIG_NET_TCP) -#include <sys/types.h> +#include <stdint.h> #include <string.h> #include <debug.h> @@ -70,7 +70,8 @@ ****************************************************************************/ #if CONFIG_NET_NTCP_READAHEAD_BUFFERS > 0 -static int uip_readahead(struct uip_readahead_s *readahead, uint8 *buf, int len) +static int uip_readahead(struct uip_readahead_s *readahead, uint8_t *buf, + int len) { int available = CONFIG_NET_TCP_READAHEAD_BUFSIZE - readahead->rh_nbytes; int recvlen = 0; @@ -111,10 +112,10 @@ static int uip_readahead(struct uip_readahead_s *readahead, uint8 *buf, int len) * ****************************************************************************/ -static inline uint16 -uip_dataevent(struct uip_driver_s *dev, struct uip_conn *conn, uint16 flags) +static inline uint16_t +uip_dataevent(struct uip_driver_s *dev, struct uip_conn *conn, uint16_t flags) { - uint16 ret; + uint16_t ret; /* Assume that we will ACK the data. The data will be ACKed if it is * placed in the read-ahead buffer -OR- if it zero length @@ -131,9 +132,9 @@ uip_dataevent(struct uip_driver_s *dev, struct uip_conn *conn, uint16 flags) #if CONFIG_NET_NTCP_READAHEAD_BUFFERS > 0 struct uip_readahead_s *readahead1; struct uip_readahead_s *readahead2 = NULL; - uint16 recvlen = 0; - uint8 *buf = dev->d_appdata; - int buflen = dev->d_len; + uint16_t recvlen = 0; + uint8_t *buf = dev->d_appdata; + int buflen = dev->d_len; #endif nllvdbg("No listener on connection\n"); @@ -223,7 +224,8 @@ uip_dataevent(struct uip_driver_s *dev, struct uip_conn *conn, uint16 flags) * ****************************************************************************/ -uint16 uip_tcpcallback(struct uip_driver_s *dev, struct uip_conn *conn, uint16 flags) +uint16_t uip_tcpcallback(struct uip_driver_s *dev, struct uip_conn *conn, + uint16_t flags) { /* Preserve the UIP_ACKDATA, UIP_CLOSE, and UIP_ABORT in the response. * These is needed by uIP to handle responses and buffer state. The @@ -231,7 +233,7 @@ uint16 uip_tcpcallback(struct uip_driver_s *dev, struct uip_conn *conn, uint16 f * explicitly set in the callback. */ - uint16 ret = flags; + uint16_t ret = flags; nllvdbg("flags: %04x\n", flags); |