From 4c90d1d9e4092f9ee0106d316829144653a276ea Mon Sep 17 00:00:00 2001 From: Filip Wandzio Date: Tue, 30 Dec 2025 02:45:11 +0100 Subject: Split monolithic dwm.h into modular headers and group them by it's functionalities The new plan of refactoring this project is to split entire monolithic codebase into separate, (kind of) independent modules. This will help with understanding the code by turning off modules and deciding which ones require some work. Signed-off-by: Filip Wandzio --- src/util/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/util.c') diff --git a/src/util/util.c b/src/util/util.c index 61c864c..7938f0f 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -54,11 +54,11 @@ void die(const char *format_string, ...) * int *array = ecalloc(10, sizeof(int)); // Allocate memory for an array of * 10 integers. */ -void *ecalloc(size_t num_elements, size_t element_size) +void *ecalloc(const size_t num_elements, const size_t element_size) { void *allocated_memory; - if (!(allocated_memory = calloc(num_elements, element_size))) + if (!((allocated_memory = calloc(num_elements, element_size)))) die("calloc:"); return allocated_memory; -- cgit v1.2.3