mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Make errfile point to const.
(cherry picked from commit 251dcb7f9f7f43b463d765f01c2451965dd5674a)
This commit is contained in:
parent
555dbf7da0
commit
b7450c7095
@ -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, ...)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user