summaryrefslogtreecommitdiff
path: root/avr-libc-1.7.1/libc
diff options
context:
space:
mode:
authorJing Yu <jingyu@google.com>2012-03-22 21:07:53 -0700
committerJing Yu <jingyu@google.com>2012-03-22 21:07:53 -0700
commit9b9d708c6a8a66a75d9fdf8eb6b35305bb1712e3 (patch)
treed34938b8628dc50afc2ad278a79a3f1480d84e80 /avr-libc-1.7.1/libc
parentedcf5bc1c8da8cc4c8b560865d2a54b73c1b51d3 (diff)
downloadavr-libc-master.tar.gz
Backport 2 patches from newer avr-libc.HEADmastermain
Change-Id: Ie1844caf74b222871c9ae01379e318972cc8f05e http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2239 http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2241
Diffstat (limited to 'avr-libc-1.7.1/libc')
-rw-r--r--avr-libc-1.7.1/libc/stdlib/dtostre.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/avr-libc-1.7.1/libc/stdlib/dtostre.c b/avr-libc-1.7.1/libc/stdlib/dtostre.c
index 3e6d3b0..c171369 100644
--- a/avr-libc-1.7.1/libc/stdlib/dtostre.c
+++ b/avr-libc-1.7.1/libc/stdlib/dtostre.c
@@ -37,12 +37,12 @@ ATTRIBUTE_CLIB_SECTION
char *
dtostre (double val, char *sbeg, unsigned char prec, unsigned char flags)
{
- __attribute__((progmem)) static char str_nan[2][4] =
+ __attribute__((progmem)) static const char str_nan[2][4] =
{"nan", "NAN"};
- __attribute__((progmem)) static char str_inf[2][sizeof(str_nan[0])] =
+ __attribute__((progmem)) static const char str_inf[2][sizeof(str_nan[0])] =
{"inf", "INF"};
char *d; /* dst */
- char *s; /* src */
+ const char *s; /* src */
signed char exp;
unsigned char vtype;