From 24a70bbcce80ec4cca76b5fbc4b008e7850de5c5 Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 12 Oct 2001 18:21:43 +0000 Subject: [PATCH] Added a missing const git-svn-id: svn://svn.cc65.org/cc65/trunk@1045 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/error.c | 8 ++++---- src/cc65/error.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cc65/error.c b/src/cc65/error.c index b61312855..cba0a479e 100644 --- a/src/cc65/error.c +++ b/src/cc65/error.c @@ -147,7 +147,7 @@ void Fatal (const char* Format, ...) /* Print a message about a fatal error and die */ { va_list ap; - + const char* FileName; unsigned LineNum; if (CurTok.LI) { @@ -171,7 +171,7 @@ void Fatal (const char* Format, ...) -void Internal (char* Format, ...) +void Internal (const char* Format, ...) /* Print a message about an internal compiler error and die. */ { va_list ap; @@ -196,7 +196,7 @@ void Internal (char* Format, ...) /* Use abort to create a core dump */ abort (); -} +} @@ -211,4 +211,4 @@ void ErrorReport (void) - + diff --git a/src/cc65/error.h b/src/cc65/error.h index b10d786c6..cc5ddc733 100644 --- a/src/cc65/error.h +++ b/src/cc65/error.h @@ -76,7 +76,7 @@ void PPError (const char* Format, ...) attribute ((format (printf, 1, 2))); void Fatal (const char* Format, ...) attribute ((noreturn, format (printf, 1, 2))); /* Print a message about a fatal error and die */ -void Internal (char* Format, ...) attribute ((noreturn, format (printf, 1, 2))); +void Internal (const char* Format, ...) attribute ((noreturn, format (printf, 1, 2))); /* Print a message about an internal compiler error and die. */ void ErrorReport (void); -- 2.39.5