diff options
| author | Blista Kanjo | 2022-10-15 22:32:22 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2022-10-15 22:32:22 -0400 |
| commit | 80d19eacd607b79c14c611680c0457b56e83150c (patch) | |
| tree | 5887ffe1a971fd6c20f262fa3a9e5c9c5e7ed71a /.config/dunst/dmenu-dunst/util.c | |
| parent | af157e1d237b01fca10d4e960f0356f23e1b2f95 (diff) | |
refactor: going back to xfce4-notifyd due to bad dunst usability (maybe next time)
Diffstat (limited to '.config/dunst/dmenu-dunst/util.c')
| -rw-r--r-- | .config/dunst/dmenu-dunst/util.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/.config/dunst/dmenu-dunst/util.c b/.config/dunst/dmenu-dunst/util.c deleted file mode 100644 index fe044fc..0000000 --- a/.config/dunst/dmenu-dunst/util.c +++ /dev/null @@ -1,35 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -#include "util.h" - -void * -ecalloc(size_t nmemb, size_t size) -{ - void *p; - - if (!(p = calloc(nmemb, size))) - die("calloc:"); - return p; -} - -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); -} |
