Commit 4f9d4cef authored by Andrey Panin's avatar Andrey Panin Committed by James Morris

[PATCH] missing static in lib_vsprinf.c

 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.
parent 515d3aa4
...@@ -131,8 +131,8 @@ static char * number(char * buf, char * end, long long num, int base, int size, ...@@ -131,8 +131,8 @@ static char * number(char * buf, char * end, long long num, int base, int size,
{ {
char c,sign,tmp[66]; char c,sign,tmp[66];
const char *digits; const char *digits;
const char small_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz"; static const char small_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
const char large_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; static const char large_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int i; int i;
digits = (type & LARGE) ? large_digits : small_digits; digits = (type & LARGE) ? large_digits : small_digits;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment