diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -30,7 +30,7 @@ bool exiting = false; struct cfg *cfghack = NULL; void -do_debug(enum debug_category category, const char *fmt, ...) +__debug(enum debug_category category, const char *fmt, ...) { va_list ap; @@ -39,9 +39,8 @@ do_debug(enum debug_category category, const char *fmt, ...) va_end(ap); } -__attribute__((noreturn)) -void -die(const char *fmt, ...) +__attribute__((noreturn)) void +__die(const char *fmt, ...) { va_list ap; @@ -138,18 +137,18 @@ cfg_init(int argc, char **argv) } if (!debug_category_str[i].name) - die("Invalid debug category\n"); + die("invalid debug category"); debug_mask |= debug_category_str[i].val; break; default: - die("Invalid arguments\n"); + die("invalid arguments"); } } if (optind < argc) - die("Invalid arguments\n"); + die("invalid arguments"); if (!cfg->homedir) cfg->homedir = "/home/david/intest"; @@ -217,7 +216,7 @@ signalfd_read(struct cfg *cfg, struct uring_task *task, int res) exit(EXIT_FAILURE); if (res != sizeof(sev->buf)) - die("Error in signalfd (%i)\n", res); + die("error in signalfd (%i)", res); if (sev->buf < 1000) { fprintf(stderr, "Got a signal to quit\n"); |