diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/util.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/init/util.c b/init/util.c deleted file mode 100644 index 4411632..0000000 --- a/init/util.c +++ /dev/null @@ -1,23 +0,0 @@ -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -/* thank you suckless team (see libsl) */ -void die(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - - if(fmt[0] && fmt[strlen(fmt)-1] == ':') { - fputc(' ', stderr); - perror(NULL); - } else { - fputc('\n', stderr); - } - - exit(1); -} |