diff options
author | Russ Cox <rsc@swtch.com> | 2008-10-26 17:01:59 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-10-26 17:01:59 -0400 |
commit | d19769ae98bce9c5893960e92c481a78d62d6be8 (patch) | |
tree | d041c4061851222b9166f95464e2d0cc688d8b51 /src/libthread | |
parent | 947dbe2d3905289a94cf61c6439cfcc50ce61a2e (diff) | |
download | plan9port-d19769ae98bce9c5893960e92c481a78d62d6be8.tar.gz plan9port-d19769ae98bce9c5893960e92c481a78d62d6be8.tar.bz2 plan9port-d19769ae98bce9c5893960e92c481a78d62d6be8.zip |
libthread: correct sysfatal handler prototype
Diffstat (limited to 'src/libthread')
-rw-r--r-- | src/libthread/thread.c | 6 |
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) |