diff options
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; |
