From e79f9e6b02cf33d6962941a0926777337bacd4b8 Mon Sep 17 00:00:00 2001 From: DengQilong <1303428517@qq.com> Date: Fri, 10 Nov 2017 20:10:45 +0800 Subject: fix bsp for lpc54608 --- components/dfs/filesystems/nfs/rpc/clnt_generic.c | 2 +- components/net/freemodbus/port/port.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'components') 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 #include "mbconfig.h" #include #include @@ -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; -- cgit v1.3.1