[Pkg-wmaker-commits] [wmload] 52/58: wmload: Fix -Wunused-result compiler warning.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:36:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmload.
commit 605c30f668d290195e39ff1282ca3e0b045b884f
Author: Doug Torrance <dtorrance at piedmont.edu>
Date: Sun Aug 23 23:28:00 2015 -0400
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/
---
wmload.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/wmload.c b/wmload.c
index c30f7bf..eeab18b 100644
--- a/wmload.c
+++ b/wmload.c
@@ -145,7 +145,9 @@ void ExecuteExternal()
ruid = getuid();
euid = geteuid();
if ( ruid == euid ) {
- system( Execute );
+ if (system( Execute ) == -1)
+ fprintf(stderr, "system(%s) returned an error",
+ Execute);
return;
}
pid = fork();
@@ -171,7 +173,8 @@ void ExecuteExternal()
strerror(errno));
exit(127);
}
- system( Execute );
+ if (system( Execute ) == -1)
+ fprintf(stderr, "system(%s) returned an error", Execute);
exit(0);
}
int main(int argc,char *argv[])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmload.git
More information about the Pkg-wmaker-commits
mailing list