diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 23:32:23 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 23:32:23 +0000 |
commit | d7d4a0d765d12cc152c62a37b490702c39d76447 (patch) | |
tree | d3969c50e49cd742124e05349431556344a93f54 /nuttx/include/arpa | |
parent | 313eb5bb780f9e9baa353651996b51ce33a85fca (diff) | |
download | px4-nuttx-d7d4a0d765d12cc152c62a37b490702c39d76447.tar.gz px4-nuttx-d7d4a0d765d12cc152c62a37b490702c39d76447.tar.bz2 px4-nuttx-d7d4a0d765d12cc152c62a37b490702c39d76447.zip |
Switching to C99 stdint.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2340 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/arpa')
-rw-r--r-- | nuttx/include/arpa/inet.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/nuttx/include/arpa/inet.h b/nuttx/include/arpa/inet.h index e2f4d2c0d..e22da8921 100644 --- a/nuttx/include/arpa/inet.h +++ b/nuttx/include/arpa/inet.h @@ -1,7 +1,7 @@ /**************************************************************************** - * arpa/inet.h + * include/arpa/inet.h * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -41,7 +41,9 @@ ****************************************************************************/ #include <nuttx/config.h> + #include <sys/types.h> +#include <stdint.h> #include <netinet/in.h> /**************************************************************************** @@ -89,10 +91,10 @@ extern "C" { /* Functions to convert between nost and network byte ordering */ -EXTERN uint32 ntohl (uint32 nl); -EXTERN uint16 ntohs (uint16 ns); -EXTERN uint32 htonl (uint32 hl); -EXTERN uint16 htons (uint16 hs); +EXTERN uint32_t ntohl(uint32_t nl); +EXTERN uint16_t ntohs(uint16_t ns); +EXTERN uint32_t htonl(uint32_t hl); +EXTERN uint16_t htons(uint16_t hs); /* Functions to manipulate address representations */ |