Skip to contentSkip to conversation

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

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

lore
Share & tools
lore
#0 lore raw

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

---
 man3/stdarg.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
man3/stdarg.3 +2 -1
index 4ca1247fc..662de73c0 100644
@@ -285,7 +285,8 @@ foo(char *fmt, ...)   /* '...' is C syntax for a variadic function */
 {
     va_list ap;
     int d;
-    char c, *s;
+    char c;
+    char *s;
 
     va_start(ap, fmt);
     while (*fmt)
Signature · 1 line
2.28.0
#1 lore raw
Quoted 4 lines · Alejandro Colomar
---
 man3/stdarg.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Thanks, Alex. Patch applied.

Cheers,

Michael

Quoted 15 lines
man3/stdarg.3 +2 -1
index 4ca1247fc..662de73c0 100644
@@ -285,7 +285,8 @@ foo(char *fmt, ...)   /* '...' is C syntax for a variadic function */
 {
     va_list ap;
     int d;
-    char c, *s;
+    char c;
+    char *s;
 
     va_start(ap, fmt);
     while (*fmt)
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/