Skip to content

Commit

Permalink
Better method name + better const usage
Browse files Browse the repository at this point in the history
Signed-off-by: Leanid Astrakou <[email protected]>
  • Loading branch information
DivergentEuropeans committed Aug 29, 2023
1 parent 8761e59 commit d0c1ce9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion c/metalio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
6 changes: 3 additions & 3 deletions c/zos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 */
Expand Down
4 changes: 2 additions & 2 deletions h/zos.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d0c1ce9

Please sign in to comment.