From 251dcb7f9f7f43b463d765f01c2451965dd5674a Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Tue, 2 Jan 2007 21:22:51 +0200 Subject: [PATCH] Make errfile point to const. --- src/util/error.c | 2 +- src/util/error.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/error.c b/src/util/error.c index e2d5408e..34e4c88f 100644 --- a/src/util/error.c +++ b/src/util/error.c @@ -52,7 +52,7 @@ er(int bell, int shall_sleep, unsigned char *fmt, va_list params) } int errline; -unsigned char *errfile; +const unsigned char *errfile; void elinks_debug(unsigned char *fmt, ...) diff --git a/src/util/error.h b/src/util/error.h index 4b56b51d..a97c921b 100644 --- a/src/util/error.h +++ b/src/util/error.h @@ -11,7 +11,7 @@ /* This errfile thing is needed, as we don't have var-arg macros in standart, * only as gcc extension :(. */ extern int errline; -extern unsigned char *errfile; +extern const unsigned char *errfile; /* @DBG(format_string) is used for printing of debugging information. It * should not be used anywhere in the official codebase (although it is often -- 2.11.4.GIT