From 34efea10735e472c060ea9cf759186463ef68223 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Fri, 26 Apr 2024 23:31:21 +0100 Subject: [PATCH] Utilise magic memory tree interface for src/pindefs.c --- src/pindefs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pindefs.c b/src/pindefs.c index df1d98e3..e71c92c8 100644 --- a/src/pindefs.c +++ b/src/pindefs.c @@ -354,7 +354,7 @@ const char * pins_to_str(const struct pindef_t * const pindef) { * This function returns a string of defined pins, eg, ~1, 2, ~4, ~5, 7 or "" * * @param[in] pindef the pin definition for which we want the string representation - * @returns a pointer to a string, which was created by cfg_strdup() + * @returns a pointer to a string, which was created by mmt_strdup() */ char *pins_to_strdup(const struct pindef_t * const pindef) { char buf[6*(PIN_MAX+1)], *p = buf; @@ -369,7 +369,7 @@ char *pins_to_strdup(const struct pindef_t * const pindef) { } } - return cfg_strdup("pins_to_strdup()", buf); + return mmt_strdup(buf); } /**