diff options
Diffstat (limited to 'nuttx/examples/sendmail')
-rwxr-xr-x | nuttx/examples/sendmail/hostdefs.h | 30 | ||||
-rw-r--r-- | nuttx/examples/sendmail/target.c | 3 |
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; |