Commit dbe2aba6 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

[PATCH] UML: Use va_end wherever va_args are used

Finish using va_list correctly, by calling va_end.
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1821c54f
...@@ -41,6 +41,7 @@ void set_handler(int sig, void (*handler)(int), int flags, ...) ...@@ -41,6 +41,7 @@ void set_handler(int sig, void (*handler)(int), int flags, ...)
while((mask = va_arg(ap, int)) != -1){ while((mask = va_arg(ap, int)) != -1){
sigaddset(&action.sa_mask, mask); sigaddset(&action.sa_mask, mask);
} }
va_end(ap);
action.sa_flags = flags; action.sa_flags = flags;
action.sa_restorer = NULL; action.sa_restorer = NULL;
if(sigaction(sig, &action, NULL) < 0) if(sigaction(sig, &action, NULL) < 0)
......
...@@ -84,6 +84,7 @@ void tracer_panic(char *format, ...) ...@@ -84,6 +84,7 @@ void tracer_panic(char *format, ...)
va_start(ap, format); va_start(ap, format);
vprintf(format, ap); vprintf(format, ap);
va_end(ap);
printf("\n"); printf("\n");
while(1) pause(); while(1) pause();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment