mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-24 19:25:47 +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
@@ -43,7 +43,7 @@ char *wgethomedir()
|
||||
|
||||
user = getpwuid(getuid());
|
||||
if (!user) {
|
||||
wsyserror(_("could not get password entry for UID %i"), getuid());
|
||||
werror(_("could not get password entry for UID %i"), getuid());
|
||||
return "/";
|
||||
}
|
||||
if (!user->pw_dir) {
|
||||
@@ -59,7 +59,7 @@ static char *getuserhomedir(const char *username)
|
||||
|
||||
user = getpwnam(username);
|
||||
if (!user) {
|
||||
wsyserror(_("could not get password entry for user %s"), username);
|
||||
werror(_("could not get password entry for user %s"), username);
|
||||
return NULL;
|
||||
}
|
||||
if (!user->pw_dir) {
|
||||
@@ -175,7 +175,7 @@ char *wexpandpath(char *path)
|
||||
|
||||
error:
|
||||
errno = ENAMETOOLONG;
|
||||
wsyserror(_("could not expand %s"), origpath);
|
||||
werror(_("could not expand %s"), origpath);
|
||||
/* FIXME: too many functions handle a return value of NULL incorrectly */
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user