1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-03 04:14:20 +01:00

WPrefs: Fixed compiler warnings

This patch is used to catch some return function value, to make the
compiler happy.
This commit is contained in:
David Maciejak
2014-02-28 11:21:47 +07:00
committed by Carlos R. Mafra
parent 278fdfa1db
commit aa890c8868
2 changed files with 14 additions and 5 deletions

View File

@@ -714,7 +714,8 @@ static void storeCommandInScript(const char *cmd, const char *line)
wfree(tmppath);
}
sprintf(buffer, "chmod u+x %s", path);
system(buffer);
if (system(buffer) == -1)
werror(_("could not execute command \"%s\""), buffer);
end:
wfree(path);