diff options
author | June McEnroe <june@causal.agency> | 2024-05-22 19:39:44 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2024-05-22 19:39:44 -0400 |
commit | d3b3c96385a9f456ac7a0e8f7eaa615d1dfc78d4 (patch) | |
tree | 920ef7c7a642d01d8063f234ef4c63d865ad9808 /xdg.c | |
parent | Pronouns (diff) | |
download | catgirl-d3b3c96385a9f456ac7a0e8f7eaa615d1dfc78d4.tar.gz catgirl-d3b3c96385a9f456ac7a0e8f7eaa615d1dfc78d4.zip |
Remove use of sysexits.h
Preserve exit status 69 (EX_UNAVAILABLE) for getting disconnected. Use 127 for failing to exec, like the shell.
Diffstat (limited to 'xdg.c')
-rw-r--r-- | xdg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xdg.c b/xdg.c index 75ee871..6f61cf9 100644 --- a/xdg.c +++ b/xdg.c @@ -32,7 +32,6 @@ #include <stdlib.h> #include <string.h> #include <sys/stat.h> -#include <sysexits.h> #include "chat.h" @@ -90,7 +89,7 @@ static char *basePath( } else if (home) { snprintf(buf, cap, "%s/%s/" SUBDIR "/%s", home, base.defHome, path); } else { - errx(EX_USAGE, "HOME unset"); + errx(1, "HOME unset"); } return buf; } |