mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-13 04:15:50 +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:
committed by
Carlos R. Mafra
parent
c5f5e0b9c0
commit
1f21919809
@@ -395,7 +395,7 @@ static void dumpRImage(char *path, RImage * image)
|
||||
|
||||
f = fopen(path, "wb");
|
||||
if (!f) {
|
||||
wsyserror(path);
|
||||
werror(path);
|
||||
return;
|
||||
}
|
||||
fprintf(f, "%02x%02x%1x", image->width, image->height, channels);
|
||||
@@ -404,7 +404,7 @@ static void dumpRImage(char *path, RImage * image)
|
||||
|
||||
fsync(fileno(f));
|
||||
if (fclose(f) < 0) {
|
||||
wsyserror(path);
|
||||
werror(path);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1027,7 +1027,7 @@ static void deleteTexture(WMWidget * w, void *data)
|
||||
WMReleasePropList(titem->prop);
|
||||
if (titem->path) {
|
||||
if (remove(titem->path) < 0 && errno != ENOENT) {
|
||||
wsyserror("could not remove file %s", titem->path);
|
||||
werror("could not remove file %s", titem->path);
|
||||
}
|
||||
wfree(titem->path);
|
||||
}
|
||||
@@ -1572,7 +1572,7 @@ static void createPanel(Panel * p)
|
||||
|
||||
if (access(panel->fprefix, F_OK) != 0) {
|
||||
if (mkdir(panel->fprefix, 0755) < 0) {
|
||||
wsyserror(panel->fprefix);
|
||||
werror(panel->fprefix);
|
||||
ok = False;
|
||||
}
|
||||
}
|
||||
@@ -1582,7 +1582,7 @@ static void createPanel(Panel * p)
|
||||
panel->fprefix = tmp;
|
||||
if (access(panel->fprefix, F_OK) != 0) {
|
||||
if (mkdir(panel->fprefix, 0755) < 0) {
|
||||
wsyserror(panel->fprefix);
|
||||
werror(panel->fprefix);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ static pid_t downloadFile(WMScreen * scr, _Panel * panel, char *file)
|
||||
|
||||
pid = fork();
|
||||
if (pid < 0) {
|
||||
wsyserror("could not fork() process");
|
||||
werror("could not fork() process");
|
||||
|
||||
WMRunAlertPanel(scr, GetWindow(panel), _("Error"),
|
||||
"Could not start download. fork() failed", _("OK"), NULL, NULL);
|
||||
|
||||
@@ -675,7 +675,7 @@ static void loadConfigurations(WMScreen * scr, WMWindow * mainw)
|
||||
wfree(command);
|
||||
}
|
||||
if (!file || !fgets(buffer, 1023, file)) {
|
||||
wsyserror(_("could not extract version information from Window Maker"));
|
||||
werror(_("could not extract version information from Window Maker"));
|
||||
wfatal(_("Make sure wmaker is in your search path."));
|
||||
|
||||
WMRunAlertPanel(scr, mainw, _("Error"),
|
||||
@@ -719,7 +719,7 @@ static void loadConfigurations(WMScreen * scr, WMWindow * mainw)
|
||||
wfree(command);
|
||||
}
|
||||
if (!file || !fgets(buffer, 1023, file)) {
|
||||
wsyserror(_("could not run \"%s --global_defaults_path\"."), path);
|
||||
werror(_("could not run \"%s --global_defaults_path\"."), path);
|
||||
exit(1);
|
||||
} else {
|
||||
char *ptr;
|
||||
|
||||
Reference in New Issue
Block a user