summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-06 19:04:47 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-06 19:04:47 +0200
commit6d8c4af9c2c1ec86e526c7b73f23f0c5477ee338 (patch)
treefc2dd5e27567cb3d7b386c52e2c591136d4006f2
parent5a934c37cf5299ed6e28d6c7c0e14c8991a4a2a7 (diff)
downloadserenity-6d8c4af9c2c1ec86e526c7b73f23f0c5477ee338.zip
LibCore+top: Use pid_t for pgid/pgrp/sid numbers
-rw-r--r--Libraries/LibCore/ProcessStatisticsReader.h6
-rw-r--r--Userland/top.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/Libraries/LibCore/ProcessStatisticsReader.h b/Libraries/LibCore/ProcessStatisticsReader.h
index 6620365d08..3afcac4f60 100644
--- a/Libraries/LibCore/ProcessStatisticsReader.h
+++ b/Libraries/LibCore/ProcessStatisticsReader.h
@@ -57,9 +57,9 @@ struct ProcessStatistics {
// Keep this in sync with /proc/all.
// From the kernel side:
pid_t pid;
- unsigned pgid;
- unsigned pgp;
- unsigned sid;
+ pid_t pgid;
+ pid_t pgp;
+ pid_t sid;
uid_t uid;
gid_t gid;
pid_t ppid;
diff --git a/Userland/top.cpp b/Userland/top.cpp
index 46c82d0479..41dffcd449 100644
--- a/Userland/top.cpp
+++ b/Userland/top.cpp
@@ -42,9 +42,9 @@
struct ThreadData {
int tid;
pid_t pid;
- unsigned pgid;
- unsigned pgp;
- unsigned sid;
+ pid_t pgid;
+ pid_t pgp;
+ pid_t sid;
uid_t uid;
gid_t gid;
pid_t ppid;