Skip to content

Commit 36e2894

Browse files
committed
src: address review comments
Signed-off-by: Gaby Baghdadi <baghdadi@ca.ibm.com>
1 parent f5c1ac1 commit 36e2894

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/node_zos.cc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static void RegisterProduct() {
139139
if (rc && !credentials::SafeGetenv("NODE_SMF89_SUPPRESS_WARNING", &val)) {
140140
fprintf(stderr,
141141
"WARNING: Could not register product with IFAUSAGE, "
142-
"rc = %llu\n",
142+
"rc = %lu\n",
143143
rc);
144144
if (const char* errorString = getIFAUsageErrorString(rc))
145145
fprintf(stderr, "%s\n", errorString);
@@ -164,7 +164,7 @@ ExitCode zosStart() {
164164

165165
// Create an alternate stack for signal processing
166166
const unsigned int STACK_SIZE = SIGSTKSZ + 1024 * 1024;
167-
galtStack = (char*)malloc(STACK_SIZE);
167+
galtStack = reinterpret_cast<char*>(malloc(STACK_SIZE));
168168
if (galtStack == nullptr) {
169169
return ExitCode::kGenericUserError;
170170
}

‎src/zos_setlibpath.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class __setlibpath {
5252
if (p == nullptr) {
5353
fprintf(stderr,
5454
"Error: dirname(%s) failed, errno=%d (argv=%s).\n"
55-
"Please report this error to IBM customer support.\n",
55+
"Please report this error to IBM customer support.\n",
5656
parent,
5757
errno,
5858
argv);

0 commit comments

Comments
 (0)