enforce code style warnings

This commit is contained in:
Luka Jankovic 2025-07-02 22:53:31 +02:00
parent c72a215afb
commit 54a49c2d60
10 changed files with 47 additions and 108 deletions

View file

@ -23,11 +23,11 @@
#include "kubo_dynarray.h"
KUBO_DYNARRAY_REGISTER(kubo_char_arr, char);
KUBO_DYNARRAY_REGISTER(kubo_char_arr, char)
static inline char *kubo_char_arr_build_str(struct kubo_char_arr *arr) {
char *res = malloc(arr->count + 1);
for (int i = 0; i < arr->count; i++) {
for (size_t i = 0; i < arr->count; i++) {
res[i] = kubo_char_arr_get(arr, i);
}
res[arr->count] = '\0';