From 56cc65c4a1956a8a2d1cf14f738deebb6a79cd6d Mon Sep 17 00:00:00 2001 From: theFeiter Date: Wed, 27 Jul 2022 16:49:40 +0200 Subject: [PATCH] set to constant chars --- fdrs_checkConfig.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fdrs_checkConfig.h b/fdrs_checkConfig.h index 872a35f..252f587 100644 --- a/fdrs_checkConfig.h +++ b/fdrs_checkConfig.h @@ -2,11 +2,11 @@ #ifndef __FDRS_CHECKCONFIG_h__ #define __FDRS_CHECKCONFIG_h__ -char* separatorLine2 = "----------------------------------------------------"; +const char* separatorLine2 = "----------------------------------------------------"; // helper function for a nice little header above each section -void printSmallSectionHeader(char* headerText) { - char * separatorLine = "----------------------------------------------------"; +void printSmallSectionHeader(const char* headerText) { + const char * separatorLine = "----------------------------------------------------"; DBG(separatorLine); DBG(headerText); @@ -14,8 +14,8 @@ void printSmallSectionHeader(char* headerText) { } // helper function for a nice little header above each section -void printSectionHeader(char* headerText) { - char * separatorLine = "----------------------------------------------------"; +void printSectionHeader(const char* headerText) { + const char * separatorLine = "----------------------------------------------------"; DBG(separatorLine); DBG(headerText); @@ -23,8 +23,8 @@ void printSectionHeader(char* headerText) { } // helper function for a nice little header above each section -void printConfigHeader(char* headerText) { - char * headerAndFooter = "===================================================="; +void printConfigHeader(const char* headerText) { + const char * headerAndFooter = "===================================================="; DBG(headerAndFooter); DBG(headerText);