summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_htonl.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 20:51:11 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 20:51:11 +0000
commit33d20a1c87eb7cae586cc0d444729eda6c46e723 (patch)
tree8232edf97066c2d2c3afaf3fea3b51ff51f702cb /nuttx/lib/lib_htonl.c
parent6260f872623acfe046f62a728405dbadc2a60c8c (diff)
downloadpx4-nuttx-33d20a1c87eb7cae586cc0d444729eda6c46e723.tar.gz
px4-nuttx-33d20a1c87eb7cae586cc0d444729eda6c46e723.tar.bz2
px4-nuttx-33d20a1c87eb7cae586cc0d444729eda6c46e723.zip
Switching to C99 stdint.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2338 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_htonl.c')
-rw-r--r--nuttx/lib/lib_htonl.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/nuttx/lib/lib_htonl.c b/nuttx/lib/lib_htonl.c
index 941919709..94af90f0f 100644
--- a/nuttx/lib/lib_htonl.c
+++ b/nuttx/lib/lib_htonl.c
@@ -1,5 +1,5 @@
/************************************************************
- * lib_ntohl.c
+ * lib/lib_ntohl.c
*
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -34,21 +34,19 @@
************************************************************/
/************************************************************
- * Compilation Switches
- ************************************************************/
-
-/************************************************************
* Included Files
************************************************************/
#include <nuttx/config.h>
+
+#include <stdint.h>
#include <arpa/inet.h>
/************************************************************
* Global Functions
************************************************************/
-uint32 htonl(uint32 hl)
+uint32_t htonl(uint32_t hl)
{
#ifdef CONFIG_ENDIAN_BIG
return hl;
@@ -60,7 +58,7 @@ uint32 htonl(uint32 hl)
#endif
}
-uint32 ntohl(uint32 nl)
+uint32_t ntohl(uint32_t nl)
{
#ifdef CONFIG_ENDIAN_BIG
return nl;