dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit 2f7834b130dbd930b06ae4d8ef802bd115b011d1
parent f494891a9aaf1f20e9900223ce2a068b6d237c27
Author: Leonardo Hernández Hernández <leohdz172@protonmail.com>
Date:   Sat, 29 Oct 2022 14:55:03 -0500

sort util.c functions

Diffstat:
Mutil.c | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/util.c b/util.c @@ -6,16 +6,6 @@ #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; @@ -33,3 +23,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; +}