missing static in lib/vsprinf.c
Subsystems (2)
PATCH 1/1 missing static in lib/vsprinf.c
Hi all,
attached patch adds missing static modifiers for small_digits[] and large_digits[] arrays in the number() function from lib/vsprintf.c
Patch against 2.5.25, should apply to 2.4.x.
Please consider applying.
Signature · 2 lines
Andrey Panin | Embedded systems software engineer [email protected] | PGP key: wwwkeys.eu.pgp.net
lib/vsprintf.c +2 -2
@@ -131,8 +131,8 @@ {char c,sign,tmp[66 ];const char *digits; -const char small_digits[] ="0123456789abcdefghijklmnopqrstuvwxyz" ; -const char large_digits[] ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" ; +static const char small_digits[] ="0123456789abcdefghijklmnopqrstuvwxyz" ; +static const char large_digits[] ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" ;int i; digits = (type &LARGE ) ? large_digits : small_digits;