From 6d8c4af9c2c1ec86e526c7b73f23f0c5477ee338 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 6 Sep 2020 19:04:47 +0200 Subject: [PATCH] LibCore+top: Use pid_t for pgid/pgrp/sid numbers --- Libraries/LibCore/ProcessStatisticsReader.h | 6 +++--- Userland/top.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Libraries/LibCore/ProcessStatisticsReader.h b/Libraries/LibCore/ProcessStatisticsReader.h index 6620365d087..3afcac4f606 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 46c82d04799..41dffcd4495 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;