summaryrefslogtreecommitdiff
path: root/Build/source/texk/seetexk/error.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-11-10 10:30:27 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-11-10 10:30:27 +0000
commit74406b49ab73cdf1b4225ec21a60616110d06c2e (patch)
treeef8ec4114e9274ebe4a375965bd67c144be0865e /Build/source/texk/seetexk/error.c
parentac4c4a45682b1157c58076c40c943a3d9a2cad77 (diff)
towards TL2010: texk/seetexk
git-svn-id: svn://tug.org/texlive/trunk@15973 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/seetexk/error.c')
-rw-r--r--Build/source/texk/seetexk/error.c6
1 files changed, 3 insertions, 3 deletions
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];