diff options
author | Leo C | 2016-03-21 23:33:05 +0100 |
---|---|---|
committer | Leo C | 2016-03-21 23:33:05 +0100 |
commit | 1b77fa4e36e50258936a4b61fdb11a988d473b1a (patch) | |
tree | c9437a732dfcb31cc9272c079769d713fe946516 /avr/cmd_gpio.c | |
parent | f3e47f679c5154908d3f869c1e9a4b5fcc29d4a5 (diff) | |
download | z180-stamp-1b77fa4e36e50258936a4b61fdb11a988d473b1a.zip |
Rename getenv() to getenv_char()
getenv() is declared in some avr-libc versions.
Diffstat (limited to 'avr/cmd_gpio.c')
-rw-r--r-- | avr/cmd_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/avr/cmd_gpio.c b/avr/cmd_gpio.c index 5589381..6b7b3f7 100644 --- a/avr/cmd_gpio.c +++ b/avr/cmd_gpio.c @@ -37,7 +37,7 @@ static void pinnames_get(void) /* TODO: enters endless loop on wrong parameters */ - if ((lp = getenv(PSTR(ENV_PINALIAS))) != NULL) { + if ((lp = getenv_char(PSTR(ENV_PINALIAS))) != NULL) { pin_names[namestr] = strdup(lp); ptr = strtok_P(pin_names[namestr], delim1); while (ptr != NULL) { |