Skip to contentSkip to conversation

hcreate.3: Declare variables with different types in different lines

PATCH In review Alejandro Colomar 2 participants 2 messages Sep 7, 2020 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hcreate.3: Declare variables with different types in different lines

---
 man3/hsearch.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
man3/hsearch.3 +2 -1
index 2fd2dc2cd..5c281c974 100644
@@ -315,7 +315,8 @@ static char *data[] = { "alpha", "bravo", "charlie", "delta",
 int
 main(void)
 {
-    ENTRY e, *ep;
+    ENTRY e;
+    ENTRY *ep;
 
     hcreate(30);
 
Signature · 1 line
2.28.0
#1 lore raw
Quoted 4 lines · Alejandro Colomar
---
 man3/hsearch.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Thanks, Alex. Patch applied.

Cheers,

Michael

Quoted 15 lines
man3/hsearch.3 +2 -1
index 2fd2dc2cd..5c281c974 100644
@@ -315,7 +315,8 @@ static char *data[] = { "alpha", "bravo", "charlie", "delta",
 int
 main(void)
 {
-    ENTRY e, *ep;
+    ENTRY e;
+    ENTRY *ep;
 
     hcreate(30);
 
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/