diff options
| author | tyustli <[email protected]> | 2019-06-18 20:09:19 +0800 |
|---|---|---|
| committer | tyustli <[email protected]> | 2019-06-18 20:09:19 +0800 |
| commit | d8eb0cfc1e119b81290a460883f427a38d572617 (patch) | |
| tree | 9cf38a4283ea507e3349ecb8c449cb1da0fcc789 /components/drivers/src/pipe.c | |
| parent | 34059c40c42c53a541822834d8d9092c640f45b3 (diff) | |
fix kernel and framework no cast type error
Diffstat (limited to 'components/drivers/src/pipe.c')
| -rw-r--r-- | components/drivers/src/pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/src/pipe.c b/components/drivers/src/pipe.c index 16fb82dbfb..b682c351ad 100644 --- a/components/drivers/src/pipe.c +++ b/components/drivers/src/pipe.c @@ -425,7 +425,7 @@ rt_pipe_t *rt_pipe_create(const char *name, int bufsz) rt_pipe_t *pipe; rt_device_t dev; - pipe = rt_malloc(sizeof(rt_pipe_t)); + pipe = (rt_pipe_t *)rt_malloc(sizeof(rt_pipe_t)); if (pipe == RT_NULL) return RT_NULL; rt_memset(pipe, 0, sizeof(rt_pipe_t)); |
