From 7c401d155d16ad076dd9c681566d535c0d3cce17 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Thu, 22 Nov 2007 01:01:26 +0000 Subject: * term.c: Include stdarg.h. (fatal): Implement using varargs. * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change). --- src/term.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/term.c') diff --git a/src/term.c b/src/term.c index cdf84eef09..20c7be33e3 100644 --- a/src/term.c +++ b/src/term.c @@ -37,6 +37,7 @@ Boston, MA 02110-1301, USA. */ #endif #include +#include #include "lisp.h" #include "termchar.h" @@ -3754,14 +3755,14 @@ maybe_fatal (must_succeed, buffer, terminal, str1, str2, arg1, arg2) abort (); } -/* VARARGS 1 */ void -fatal (str, arg1, arg2) - char *str, *arg1, *arg2; +fatal (const char *str, ...) { + va_list ap; + va_start (ap, str); fprintf (stderr, "emacs: "); - fprintf (stderr, str, arg1, arg2); - fprintf (stderr, "\n"); + vfprintf (stderr, str, ap); + va_end (ap); fflush (stderr); exit (1); } -- cgit v1.2.3