aboutsummaryrefslogtreecommitdiffstats
path: root/EnvScreen.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-07-25 18:25:28 +0200
committerDaniel Lange <DLange@git.local>2016-07-25 18:25:28 +0200
commit31b71b67011fa52f091df6fe536a11d6d0bfb256 (patch)
tree31cb222871017376af8b7435d24cf4961863fa93 /EnvScreen.c
parent8c82a38002ce09db2a0b83dab8b598cf1ab0596c (diff)
downloaddebian_htop-31b71b67011fa52f091df6fe536a11d6d0bfb256.tar.gz
debian_htop-31b71b67011fa52f091df6fe536a11d6d0bfb256.tar.bz2
debian_htop-31b71b67011fa52f091df6fe536a11d6d0bfb256.zip
Imported Upstream version 2.0.2upstream/2.0.2
Diffstat (limited to 'EnvScreen.c')
-rw-r--r--EnvScreen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/EnvScreen.c b/EnvScreen.c
index 4414c39..06f329c 100644
--- a/EnvScreen.c
+++ b/EnvScreen.c
@@ -49,9 +49,9 @@ void EnvScreen_scan(InfoScreen* this) {
Panel_prune(panel);
uid_t euid = geteuid();
- seteuid(getuid());
+ (void) seteuid(getuid());
char *env = Platform_getProcessEnv(this->process->pid);
- seteuid(euid);
+ (void) seteuid(euid);
if (env) {
for (char *p = env; *p; p = strrchr(p, 0)+1)
InfoScreen_addLine(this, p);

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