diff options
| author | bakkeby <[email protected]> | 2022-08-08 14:39:58 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2022-08-08 14:41:21 +0200 |
| commit | 91cb32c3edcc6d5049b6d0115309d75ecda547bb (patch) | |
| tree | 5a37f474c51e92d74b2aabd2b6cdd17298f98271 /util.c | |
| parent | d6205e3e89ca4ecb3dac4f384efaad91f28d9d5a (diff) | |
| download | dwm-flexipatch-91cb32c3edcc6d5049b6d0115309d75ecda547bb.tar.gz dwm-flexipatch-91cb32c3edcc6d5049b6d0115309d75ecda547bb.zip | |
Bump to e0dee91.
sync code-style patch from libsl
Ref.
https://git.suckless.org/dwm/commit/e0dee911455cee739a5b05a994828f4a37a2764d.html
Diffstat (limited to 'util.c')
| -rw-r--r-- | util.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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); @@ -34,3 +25,12 @@ 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; +} |
