summaryrefslogtreecommitdiff
path: root/nuttx/examples/sendmail
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-15 19:00:40 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-15 19:00:40 +0000
commit08b2e5a5495fb08277274eaaf91c21069e0fbadf (patch)
tree8fd7037b0159064a937714529251eb34ec4f4e73 /nuttx/examples/sendmail
parentefcfa33c1fa5728dc7c8dd9fd9f20ed7d8a0b27a (diff)
downloadpx4-nuttx-08b2e5a5495fb08277274eaaf91c21069e0fbadf.tar.gz
px4-nuttx-08b2e5a5495fb08277274eaaf91c21069e0fbadf.tar.bz2
px4-nuttx-08b2e5a5495fb08277274eaaf91c21069e0fbadf.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@2351 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/sendmail')
-rwxr-xr-xnuttx/examples/sendmail/hostdefs.h30
-rw-r--r--nuttx/examples/sendmail/target.c3
2 files changed, 14 insertions, 19 deletions
diff --git a/nuttx/examples/sendmail/hostdefs.h b/nuttx/examples/sendmail/hostdefs.h
index 266fd04f2..da072d560 100755
--- a/nuttx/examples/sendmail/hostdefs.h
+++ b/nuttx/examples/sendmail/hostdefs.h
@@ -40,36 +40,30 @@
* Included Files
*****************************************************************************/
-# include <stdio.h>
+#include <stdint.h>
+#include <stdbool.h>
+#include <stdio.h>
/****************************************************************************
* Preprocessor Defintiions
*****************************************************************************/
-# define HTONS(a) htons(a)
-# define HTONL(a) htonl(a)
-# define CONFIG_CPP_HAVE_WARNING 1
-# define CONFIG_HAVE_GETHOSTBYNAME 1
-# define FAR
+#define HTONS(a) htons(a)
+#define HTONL(a) htonl(a)
+#define CONFIG_CPP_HAVE_WARNING 1
+#define CONFIG_HAVE_GETHOSTBYNAME 1
+#define FAR
-# define ndbg(...) printf(__VA_ARGS__)
-# define nvdbg(...) printf(__VA_ARGS__)
+#define ndbg(...) printf(__VA_ARGS__)
+#define nvdbg(...) printf(__VA_ARGS__)
-# define TRUE (1)
-# define FALSE (0)
-# define ERROR (-1)
-# define OK (0)
+#define ERROR (-1)
+#define OK (0)
/****************************************************************************
* Type Definitions
*****************************************************************************/
-typedef unsigned char uint8;
-typedef unsigned char ubyte;
-typedef unsigned short uint16;
-typedef unsigned int uint32;
-typedef unsigned char boolean;
-
typedef void *(*pthread_startroutine_t)(void *);
#endif /* __HOSTDEFS_H */
diff --git a/nuttx/examples/sendmail/target.c b/nuttx/examples/sendmail/target.c
index 1d96fd53b..a68db0b26 100644
--- a/nuttx/examples/sendmail/target.c
+++ b/nuttx/examples/sendmail/target.c
@@ -37,6 +37,7 @@
* Included Files
****************************************************************************/
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -117,7 +118,7 @@ int user_start(int argc, char *argv[])
{
struct in_addr addr;
#if defined(CONFIG_EXAMPLE_SENDMAIL_NOMAC)
- uint8 mac[IFHWADDRLEN];
+ uint8_t mac[IFHWADDRLEN];
#endif
void *handle;