diff options
| author | DengQilong <[email protected]> | 2017-11-10 20:10:45 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2017-11-13 14:18:05 +0800 |
| commit | e79f9e6b02cf33d6962941a0926777337bacd4b8 (patch) | |
| tree | 2fcef6a68cfee5234e1daf666db220335a63cc96 /components | |
| parent | 7b2628393bf923226a27766a918ca5c6a930e285 (diff) | |
fix bsp for lpc54608
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/filesystems/nfs/rpc/clnt_generic.c | 2 | ||||
| -rw-r--r-- | components/net/freemodbus/port/port.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/components/dfs/filesystems/nfs/rpc/clnt_generic.c b/components/dfs/filesystems/nfs/rpc/clnt_generic.c index 4e4e6a1658..dcc2eb2097 100644 --- a/components/dfs/filesystems/nfs/rpc/clnt_generic.c +++ b/components/dfs/filesystems/nfs/rpc/clnt_generic.c @@ -50,7 +50,7 @@ CLIENT *clnt_create (const char *hostname, const unsigned long prog, struct timeval tv; CLIENT *client; - h = gethostbyname(hostname); + h = (struct hostent *)gethostbyname(hostname); if (h == NULL) { rt_kprintf("unknown host\n"); return (NULL); diff --git a/components/net/freemodbus/port/port.h b/components/net/freemodbus/port/port.h index 73d2177c9a..97b648a8bb 100644 --- a/components/net/freemodbus/port/port.h +++ b/components/net/freemodbus/port/port.h @@ -22,7 +22,6 @@ #ifndef _PORT_H #define _PORT_H -#include <stm32f10x_conf.h> #include "mbconfig.h" #include <rthw.h> #include <rtthread.h> @@ -35,7 +34,7 @@ #define PR_END_EXTERN_C } #define ENTER_CRITICAL_SECTION() EnterCriticalSection() -#define EXIT_CRITICAL_SECTION() ExitCriticalSection() +#define EXIT_CRITICAL_SECTION() ExitCriticalSection() typedef uint8_t BOOL; |
