summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/node_report.cc5
-rw-r--r--src/node_report.h2
2 files changed, 2 insertions, 5 deletions
diff --git a/src/node_report.cc b/src/node_report.cc
index bb4c4e1a3a..f5035d4628 100644
--- a/src/node_report.cc
+++ b/src/node_report.cc
@@ -107,9 +107,8 @@ std::string TriggerNodeReport(Isolate* isolate,
// Obtain the current time and the pid (platform dependent)
TIME_TYPE tm_struct;
- PID_TYPE pid;
LocalTime(&tm_struct);
- pid = uv_os_getpid();
+ uv_pid_t pid = uv_os_getpid();
// Determine the required report filename. In order of priority:
// 1) supplied on API 2) configured on startup 3) default generated
if (!name.empty()) {
@@ -224,7 +223,7 @@ static void WriteNodeReport(Isolate* isolate,
Local<String> stackstr,
TIME_TYPE* tm_struct) {
std::ostringstream buf;
- PID_TYPE pid = uv_os_getpid();
+ uv_pid_t pid = uv_os_getpid();
// Save formatting for output stream.
std::ios old_state(nullptr);
diff --git a/src/node_report.h b/src/node_report.h
index c64b9c9a20..4c29c13afc 100644
--- a/src/node_report.h
+++ b/src/node_report.h
@@ -32,11 +32,9 @@ namespace report {
#ifdef _WIN32
typedef SYSTEMTIME TIME_TYPE;
-typedef DWORD PID_TYPE;
#define PATHSEP "\\"
#else // UNIX, OSX
typedef struct tm TIME_TYPE;
-typedef pid_t PID_TYPE;
#define PATHSEP "/"
#endif