* [PATCH] stdarg.3: Declare variables with different types in different lines
@ 2020-09-05 22:09 Alejandro Colomar
2020-09-06 12:52 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 2+ messages in thread
From: Alejandro Colomar @ 2020-09-05 22:09 UTC (permalink / raw)
To: mtk.manpages; +Cc: linux-man, Alejandro Colomar
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
---
man3/stdarg.3 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/man3/stdarg.3 b/man3/stdarg.3
index 4ca1247fc..662de73c0 100644
--- a/man3/stdarg.3
+++ b/man3/stdarg.3
@@ -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)
--
2.28.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] stdarg.3: Declare variables with different types in different lines
2020-09-05 22:09 [PATCH] stdarg.3: Declare variables with different types in different lines Alejandro Colomar
@ 2020-09-06 12:52 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-09-06 12:52 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: mtk.manpages, linux-man
On 9/6/20 12:09 AM, Alejandro Colomar wrote:
> Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
> ---
> man3/stdarg.3 | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Thanks, Alex. Patch applied.
Cheers,
Michael
> diff --git a/man3/stdarg.3 b/man3/stdarg.3
> index 4ca1247fc..662de73c0 100644
> --- a/man3/stdarg.3
> +++ b/man3/stdarg.3
> @@ -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)
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-06 12:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-05 22:09 [PATCH] stdarg.3: Declare variables with different types in different lines Alejandro Colomar
2020-09-06 12:52 ` Michael Kerrisk (man-pages)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.