Constify parsehdr error/warning reporting function arguments.
This commit is contained in:
parent
7f1a4e26bd
commit
126e206b08
@ -58,7 +58,7 @@ boolT phDoCB(int id, char *data) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void phError(char *errmsg) {
|
||||
void phError(const char *errmsg) {
|
||||
char msg[200];
|
||||
|
||||
sprintf(msg, "PH *ERROR*\nFile: %s L=%d C=%d O=%lu\n%s", fileName, line, col,
|
||||
@ -66,7 +66,7 @@ void phError(char *errmsg) {
|
||||
printf(msg);
|
||||
}
|
||||
|
||||
void phWarning(char *errmsg) {
|
||||
void phWarning(const char *errmsg) {
|
||||
char msg[200];
|
||||
|
||||
sprintf(msg, "PH -warning-\nFile: %s L=%d C=%d O=%lu\n%s\n", fileName, line,
|
||||
|
||||
@ -20,8 +20,8 @@ typedef unsigned char boolT; /* 8 bits */
|
||||
|
||||
#define ERRF stdout
|
||||
|
||||
void phError(char *errmsg);
|
||||
void phWarning(char *errmsg);
|
||||
void phError(const char * errmsg);
|
||||
void phWarning(const char * errmsg);
|
||||
|
||||
#define ERR(msg) phError(msg)
|
||||
#ifdef DEBUG
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user