diff --git a/lib/rpmsg/rpmsg_core.c b/lib/rpmsg/rpmsg_core.c
index 81c2602e6c1be1a717983d58e8e5d01c5df649b9..64501b62e26eee6324bbe1429956406e748a5d7c 100644 (file)
--- a/lib/rpmsg/rpmsg_core.c
+++ b/lib/rpmsg/rpmsg_core.c
*
*
**************************************************************************/
+#include <string.h>
#include "openamp/rpmsg.h"
/* Internal functions */
rp_chnl = env_allocate_memory(sizeof(struct rpmsg_channel));
if (rp_chnl) {
- env_memset(rp_chnl, 0x00, sizeof(struct rpmsg_channel));
+ memset(rp_chnl, 0x00, sizeof(struct rpmsg_channel));
env_strncpy(rp_chnl->name, name, sizeof(rp_chnl->name));
rp_chnl->src = src;
rp_chnl->dst = dst;
if (!rp_ept) {
return RPMSG_NULL;
}
- env_memset(rp_ept, 0x00, sizeof(struct rpmsg_endpoint));
+ memset(rp_ept, 0x00, sizeof(struct rpmsg_endpoint));
node = env_allocate_memory(sizeof(struct llist));
if (!node) {