Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 15 Apr 2024 03:26:17 -0700
From: Michael Forney <mforney@...rney.org>
To: musl@...ts.openwall.com
Subject: [PATCH] mallocng: remove stray ';' at top-level

The LOCK_OBJ_DEF macro ends with the closing brace of a
function-definition, which is a complete external-declaration. The
semicolon following the macro use is therefore unnecessary. Empty
declarations are not syntactically valid according to the ISO C
grammar, so remove it.
---
 src/malloc/mallocng/malloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/malloc/mallocng/malloc.c b/src/malloc/mallocng/malloc.c
index d695ab8e..2549eb38 100644
--- a/src/malloc/mallocng/malloc.c
+++ b/src/malloc/mallocng/malloc.c
@@ -7,7 +7,7 @@
 
 #include "meta.h"
 
-LOCK_OBJ_DEF;
+LOCK_OBJ_DEF
 
 const uint16_t size_classes[] = {
 	1, 2, 3, 4, 5, 6, 7, 8,
-- 
2.44.0

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.