aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/thread.c')
-rw-r--r--src/libthread/thread.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libthread/thread.c b/src/libthread/thread.c
index 42081e92..f8f8d11e 100644
--- a/src/libthread/thread.c
+++ b/src/libthread/thread.c
@@ -282,12 +282,10 @@ threadunpin(void)
}
void
-threadsysfatal(char *fmt, ...)
+threadsysfatal(char *fmt, va_list arg)
{
char buf[256];
- va_list arg;
- va_start(arg, fmt);
vseprint(buf, buf+sizeof(buf), fmt, arg);
__fixargv0();
fprint(2, "%s: %s\n", argv0 ? argv0 : "<prog>", buf);
@@ -699,7 +697,7 @@ threadmainstart(void *v)
threadmain(threadargc, threadargv);
}
-extern void (*_sysfatal)(char*, ...);
+extern void (*_sysfatal)(char*, va_list);
int
main(int argc, char **argv)