1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-23 02:25:54 +01:00

Remove wsyserrorwithcode, rename wsyserror to werror

wsyserrorwithcode - Not used, no point either.
wsyserror->werror - qualifying "error" with a "type" hardly makes
sense if there are not at least two "type"s. There are not. Safe trip.

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
Tamas TEVESZ
2010-09-27 16:12:57 +02:00
committed by Carlos R. Mafra
parent c5f5e0b9c0
commit 1f21919809
20 changed files with 92 additions and 108 deletions

View File

@@ -656,7 +656,7 @@ static void storeCommandInScript(char *cmd, char *line)
if (!f) {
f = fopen(path, "wb");
if (!f) {
wsyserror(_("could not create %s"), path);
werror(_("could not create %s"), path);
goto end;
}
fprintf(f, "#!/bin/sh\n");
@@ -671,7 +671,7 @@ static void storeCommandInScript(char *cmd, char *line)
tmppath = wstrconcat(wusergnusteppath(), "/Library/WindowMaker/autostart.tmp");
fo = fopen(tmppath, "wb");
if (!fo) {
wsyserror(_("could not create temporary file %s"), tmppath);
werror(_("could not create temporary file %s"), tmppath);
wfree(tmppath);
goto end;
}
@@ -704,7 +704,7 @@ static void storeCommandInScript(char *cmd, char *line)
fclose(fo);
if (rename(tmppath, path) != 0) {
wsyserror(_("could not rename file %s to %s\n"), tmppath, path);
werror(_("could not rename file %s to %s\n"), tmppath, path);
}
wfree(tmppath);
}