Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 5a02082db58e3c0af4370e02f3ae1990 > files > 2

avr-libc-1.7.1-8.mga5.src.rpm

--- include/avr/pgmspace.h	2011/05/09 16:44:33	2238
+++ include/avr/pgmspace.h	2011/05/09 17:11:12	2239
@@ -252,7 +252,7 @@
 # define PSTR(s) ((const PROGMEM char *)(s))
 #else  /* !DOXYGEN */
 /* The real thing. */
-# define PSTR(s) (__extension__({static char __c[] PROGMEM = (s); &__c[0];}))
+# define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
 #endif /* DOXYGEN */
 
 #define __LPM_classic__(addr)   \

--- libc/stdlib/dtostre.c	2011/05/09 22:18:18	2240
+++ libc/stdlib/dtostre.c	2011/05/11 12:59:48	2241
@@ -37,12 +37,12 @@
 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;