mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
libthread: correct sysfatal handler prototype
This commit is contained in:
parent
947dbe2d39
commit
d19769ae98
1 changed files with 2 additions and 4 deletions
|
@ -282,12 +282,10 @@ threadunpin(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
threadsysfatal(char *fmt, ...)
|
threadsysfatal(char *fmt, va_list arg)
|
||||||
{
|
{
|
||||||
char buf[256];
|
char buf[256];
|
||||||
va_list arg;
|
|
||||||
|
|
||||||
va_start(arg, fmt);
|
|
||||||
vseprint(buf, buf+sizeof(buf), fmt, arg);
|
vseprint(buf, buf+sizeof(buf), fmt, arg);
|
||||||
__fixargv0();
|
__fixargv0();
|
||||||
fprint(2, "%s: %s\n", argv0 ? argv0 : "<prog>", buf);
|
fprint(2, "%s: %s\n", argv0 ? argv0 : "<prog>", buf);
|
||||||
|
@ -699,7 +697,7 @@ threadmainstart(void *v)
|
||||||
threadmain(threadargc, threadargv);
|
threadmain(threadargc, threadargv);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void (*_sysfatal)(char*, ...);
|
extern void (*_sysfatal)(char*, va_list);
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
|
|
Loading…
Reference in a new issue