aboutsummaryrefslogtreecommitdiffstats
path: root/EnvScreen.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2024-01-10 11:17:08 +0100
committerDaniel Lange <DLange@git.local>2024-01-10 11:17:08 +0100
commite7372d18a1a661d8c3dba9f51e1f17b5f94171a7 (patch)
treee8270dd60ec096bee8157dbadf029e15ed584592 /EnvScreen.c
parent937052b231259a47d881d539ad5748245ef55b99 (diff)
downloaddebian_htop-e7372d18a1a661d8c3dba9f51e1f17b5f94171a7.tar.gz
debian_htop-e7372d18a1a661d8c3dba9f51e1f17b5f94171a7.tar.bz2
debian_htop-e7372d18a1a661d8c3dba9f51e1f17b5f94171a7.zip
New upstream version 3.3.0
Diffstat (limited to 'EnvScreen.c')
-rw-r--r--EnvScreen.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/EnvScreen.c b/EnvScreen.c
index 0fcee83..4a36b31 100644
--- a/EnvScreen.c
+++ b/EnvScreen.c
@@ -1,3 +1,12 @@
+/*
+htop - EnvScreen.c
+(C) 2015,2016 Michael Klein
+(C) 2016,2017 Hisham H. Muhammad
+(C) 2020,2021 htop dev team
+Released under the GNU GPLv2+, see the COPYING file
+in the source distribution for its full text.
+*/
+
#include "config.h" // IWYU pragma: keep
#include "EnvScreen.h"
@@ -24,7 +33,7 @@ void EnvScreen_delete(Object* this) {
}
static void EnvScreen_draw(InfoScreen* this) {
- InfoScreen_drawTitled(this, "Environment of process %d - %s", this->process->pid, Process_getCommand(this->process));
+ InfoScreen_drawTitled(this, "Environment of process %d - %s", Process_getPid(this->process), Process_getCommand(this->process));
}
static void EnvScreen_scan(InfoScreen* this) {
@@ -33,7 +42,7 @@ static void EnvScreen_scan(InfoScreen* this) {
Panel_prune(panel);
- char* env = Platform_getProcessEnv(this->process->pid);
+ char* env = Platform_getProcessEnv(Process_getPid(this->process));
if (env) {
for (const char* p = env; *p; p = strrchr(p, 0) + 1)
InfoScreen_addLine(this, p);

© 2014-2024 Faster IT GmbH | imprint | privacy policy