From a0fc007256112d95342b7b52f9797be4310b5821 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 16 Feb 2019 08:23:43 +0100 Subject: [PATCH] mesh: Use l_malloc instead of l_new with a cast --- mesh/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/net.c b/mesh/net.c index f00ef7df7..53010d57f 100644 --- a/mesh/net.c +++ b/mesh/net.c @@ -1288,7 +1288,7 @@ static struct mesh_friend_msg *mesh_friend_msg_new(uint8_t seg_max) sizeof(struct mesh_friend_seg_one); size += (seg_max + 1) * sizeof(struct mesh_friend_seg_12); - frnd_msg = (struct mesh_friend_msg *) l_new(uint8_t, size); + frnd_msg = l_malloc(size); } else frnd_msg = l_new(struct mesh_friend_msg, 1); -- 2.47.3