From 5a59dcec19327396a011a17fd924aed4fec416b3 Mon Sep 17 00:00:00 2001 From: "Emilio G. Cota" Date: Thu, 17 Jan 2019 13:11:38 -0500 Subject: fail: constify fail_programName Signed-off-by: Emilio G. Cota --- source/fail.c | 2 +- source/fail.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fail.c b/source/fail.c index f68e941..befe6b0 100644 --- a/source/fail.c +++ b/source/fail.c @@ -41,7 +41,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "platform.h" #include "fail.h" -char *fail_programName = ""; +const char *fail_programName = ""; void fail( const char *messagePtr, ... ) { diff --git a/source/fail.h b/source/fail.h index e981473..f163d3c 100644 --- a/source/fail.h +++ b/source/fail.h @@ -35,7 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. =============================================================================*/ -extern char *fail_programName; +extern const char *fail_programName; void fail( const char *, ... ); -- cgit v1.1