FreeBSD tweaks

This commit is contained in:
rsc 2004-12-28 17:34:05 +00:00
parent d54ead7fb9
commit f7b74c1725
11 changed files with 26 additions and 22 deletions

View file

@ -614,10 +614,13 @@ summary(void)
void
error(char *s, ...)
{
va_list arg;
nerrors++;
fprint(2, "\n fatal error:");
fprint(2, s, (&s)[1]);
va_start(arg, s);
vfprint(2, s, arg);
va_end(arg);
fprint(2, ", %s:%d\n", infile, lineno);
if(!fatfl)
return;
@ -2629,7 +2632,7 @@ callopt(void)
case '$':
break;
default:
error("bad tempfile");
error("bad tempfile %s", tempname);
}
break;
}