From 74406b49ab73cdf1b4225ec21a60616110d06c2e Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Tue, 10 Nov 2009 10:30:27 +0000 Subject: towards TL2010: texk/seetexk git-svn-id: svn://tug.org/texlive/trunk@15973 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/seetexk/error.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Build/source/texk/seetexk/error.c') diff --git a/Build/source/texk/seetexk/error.c b/Build/source/texk/seetexk/error.c index f4621745c1c..330eb65a328 100644 --- a/Build/source/texk/seetexk/error.c +++ b/Build/source/texk/seetexk/error.c @@ -28,7 +28,7 @@ extern int errno; #endif static FILE *trap_file; /* error diversion file, if any */ -static void (*trap_fn)(int, char *); /* trap function */ +static void (*trap_fn)(int, const char *); /* trap function */ static char *trap_buf; /* buffer for trapped error strings */ static int trap_size; /* size of trap_buf */ @@ -53,7 +53,7 @@ strerror (int errnum) * Return a pointer to the (NUL-terminated) text. * If something goes wrong, return something else printable. */ -static char * +static const char * readback(void) { int nbytes = ftell(trap_file) + 1; @@ -145,7 +145,7 @@ panic(const char *fmt, ...) * If fn is NULL, stop trapping. */ void -SetErrorTrap(void (*fn)(int, char *)) +SetErrorTrap(void (*fn)(int, const char *)) { int tempfd; char fname[BUFSIZ]; -- cgit v1.2.3