wmload: Fix -Wunused-result compiler warning.
Obtained from the Debian package [1]. [1] https://sources.debian.net/src/wmload/0.9.6-1/debian/patches/fix_unused_result.patch/
This commit is contained in:
parent
67052deb3c
commit
77359686b0
|
@ -145,7 +145,9 @@ void ExecuteExternal()
|
||||||
ruid = getuid();
|
ruid = getuid();
|
||||||
euid = geteuid();
|
euid = geteuid();
|
||||||
if ( ruid == euid ) {
|
if ( ruid == euid ) {
|
||||||
system( Execute );
|
if (system( Execute ) == -1)
|
||||||
|
fprintf(stderr, "system(%s) returned an error",
|
||||||
|
Execute);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pid = fork();
|
pid = fork();
|
||||||
|
@ -171,7 +173,8 @@ void ExecuteExternal()
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
exit(127);
|
exit(127);
|
||||||
}
|
}
|
||||||
system( Execute );
|
if (system( Execute ) == -1)
|
||||||
|
fprintf(stderr, "system(%s) returned an error", Execute);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
int main(int argc,char *argv[])
|
int main(int argc,char *argv[])
|
||||||
|
|
Loading…
Reference in a new issue