diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-10-29 16:56:23 -0500 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-10-29 18:11:28 -0500 |
commit | 6a0ec2a8c3e470ce76353008e79da7e764c0af6f (patch) | |
tree | cce7820f66b796c9d97a26465def70fa06cfda20 /util.c | |
parent | 1eeb3689d3ec5b917b5ccf730a6497e4b9fcd0a6 (diff) | |
parent | 846ce52b926797dc51f9fcdc2d121ee63fb68580 (diff) |
Merge remote-tracking branch 'upstream/main' into wlroots-next
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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; +} |