* [PATCH 2/28] UML - Use va_end wherever va_args are used
@ 2005-01-10 7:35 Jeff Dike
0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2005-01-10 7:35 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, blaisorblade_spam
Finish using va_list correctly, by calling va_end.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Index: 2.6.10/arch/um/kernel/signal_user.c
===================================================================
--- 2.6.10.orig/arch/um/kernel/signal_user.c 2004-12-14 12:10:30.000000000 -0500
+++ 2.6.10/arch/um/kernel/signal_user.c 2004-12-14 15:51:35.000000000 -0500
@@ -41,6 +41,7 @@
while((mask = va_arg(ap, int)) != -1){
sigaddset(&action.sa_mask, mask);
}
+ va_end(ap);
action.sa_flags = flags;
action.sa_restorer = NULL;
if(sigaction(sig, &action, NULL) < 0)
Index: 2.6.10/arch/um/kernel/tt/tracer.c
===================================================================
--- 2.6.10.orig/arch/um/kernel/tt/tracer.c 2004-12-14 12:14:46.000000000 -0500
+++ 2.6.10/arch/um/kernel/tt/tracer.c 2004-12-14 15:51:35.000000000 -0500
@@ -84,6 +84,7 @@
va_start(ap, format);
vprintf(format, ap);
+ va_end(ap);
printf("\n");
while(1) pause();
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-10 5:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-10 7:35 [PATCH 2/28] UML - Use va_end wherever va_args are used Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome