diff options
| author | kj-sh604 | 2024-08-09 05:20:29 -0400 |
|---|---|---|
| committer | kj-sh604 | 2024-08-09 05:20:29 -0400 |
| commit | 2bb0567db1050c8f11e3a4032a8431baa77c1efb (patch) | |
| tree | 0d0dd1e2ce36187410f1fd918499d6072b3ea880 /.local/src/dmenu-dunst/util.c | |
| parent | 0c5295eb1453a1066737c11bb589b69109d66598 (diff) | |
update: dmenu to `5.3`
Diffstat (limited to '.local/src/dmenu-dunst/util.c')
| -rw-r--r-- | .local/src/dmenu-dunst/util.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/.local/src/dmenu-dunst/util.c b/.local/src/dmenu-dunst/util.c index fe044fc..96b82c9 100644 --- a/.local/src/dmenu-dunst/util.c +++ b/.local/src/dmenu-dunst/util.c @@ -6,18 +6,9 @@ #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, ...) { +die(const char *fmt, ...) +{ va_list ap; va_start(ap, fmt); @@ -33,3 +24,13 @@ die(const char *fmt, ...) { exit(1); } + +void * +ecalloc(size_t nmemb, size_t size) +{ + void *p; + + if (!(p = calloc(nmemb, size))) + die("calloc:"); + return p; +} |
