diff --git a/c/metalio.c b/c/metalio.c index 8cc0bca75..9b6c45edf 100644 --- a/c/metalio.c +++ b/c/metalio.c @@ -379,7 +379,7 @@ SYSOUT *getSYSOUTStruct(char *ddname, SYSOUT *existingSysout, char *buffer){ */ void message(char *message){ - message2(message); + wtoMessage(message); } /* this can only be called from authorized callers */ diff --git a/c/zos.c b/c/zos.c index 74923d87f..2a5879198 100644 --- a/c/zos.c +++ b/c/zos.c @@ -1471,7 +1471,7 @@ int safStat(int options, char *safClass, char *copy, int copyLength, int *racfSt /* begin WTO SECTION */ -void message2(char *message){ +void wtoMessage(const char *message){ ALLOC_STRUCT31( STRUCT31_NAME(below2G), @@ -1500,7 +1500,7 @@ void message2(char *message){ } #define WTO_MAX_SIZE 126 -void wtoPrintf3(char *formatString, ...) { +void wtoPrintf3(const char *formatString, ...) { char text[WTO_MAX_SIZE+1]; /* Allow for trailing null character */ va_list argPointer; int cnt; @@ -1537,7 +1537,7 @@ void wtoPrintf3(char *formatString, ...) { if (cnt>0 && text[cnt-1] == '\n') /* If text ends with \n */ text[cnt-1] = 0; /* Change it into a null character */ - message2(text); + wtoMessage(text); } /* end WTO SECTION */ diff --git a/h/zos.h b/h/zos.h index 2e9a30f67..1daba3f21 100644 --- a/h/zos.h +++ b/h/zos.h @@ -1536,9 +1536,9 @@ DSAB *getDSAB(char *ddname); int dsabIsOMVS(DSAB *dsab); -void message2(char *message); +void wtoMessage(const char *message); -void wtoPrintf3(char *formatString, ...); +void wtoPrintf3(const char *formatString, ...); int locate(char *dsn, int *volserCount, char *firstVolser);