tlibthread: correct sysfatal handler prototype - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit d19769ae98bce9c5893960e92c481a78d62d6be8
DIR parent 947dbe2d3905289a94cf61c6439cfcc50ce61a2e
HTML Author: Russ Cox <rsc@swtch.com>
Date: Sun, 26 Oct 2008 17:01:59 -0400
libthread: correct sysfatal handler prototype
Diffstat:
M src/libthread/thread.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
DIR diff --git a/src/libthread/thread.c b/src/libthread/thread.c
t@@ -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);
t@@ -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)