mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-22 17:16:24 +03:00
Utilise magic memory tree interface for src/pindefs.c
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user