Silence warnings about seteuid return value.

Closes #483.
This commit is contained in:
Hisham
2016-05-25 21:37:07 -03:00
parent b7ac416634
commit fa0c637c55
4 changed files with 13 additions and 13 deletions

View File

@ -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);