From f7245f66295752306ee58c1a9be0ed01b653e347 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Wed, 16 Aug 2023 09:59:15 +0200 Subject: Minor tweaks --- src/linda.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/linda.c') diff --git a/src/linda.c b/src/linda.c index 390816b..8b59790 100644 --- a/src/linda.c +++ b/src/linda.c @@ -797,8 +797,7 @@ static void* linda_id( lua_State* L, DeepOp op_) { Universe* const U = universe_get(L); AllocatorDefinition* const allocD = &U->internal_allocator; - - s = (struct s_Linda*)allocD->allocF(allocD->allocUD, NULL, 0, sizeof(struct s_Linda) + name_len); // terminating 0 is already included + s = (struct s_Linda*) allocD->allocF(allocD->allocUD, NULL, 0, sizeof(struct s_Linda) + name_len); // terminating 0 is already included } if( s) { @@ -835,8 +834,7 @@ static void* linda_id( lua_State* L, DeepOp op_) { Universe* const U = universe_get(L); AllocatorDefinition* const allocD = &U->internal_allocator; - - allocD->allocF(allocD->allocUD, linda, sizeof(struct s_Linda) + strlen(linda->name), 0); + (void) allocD->allocF(allocD->allocUD, linda, sizeof(struct s_Linda) + strlen(linda->name), 0); } return NULL; } -- cgit v1.2.3-55-g6feb