Commit 0eb257683ded98431d6c30b360b7bd37235f518d

Authored by Kim Phillips
Committed by Tom Rini
1 parent ee820b5e5b

lib/vsprintf.c: sparse fixes

vsprintf.c:31:12: warning: symbol 'hex_asc' was not declared. Should it be static?
vsprintf.c:398:18: warning: Using plain integer as NULL pointer

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -28,7 +28,7 @@
28 28 /* some reluctance to put this into a new limits.h, so it is here */
29 29 #define INT_MAX ((int)(~0U>>1))
30 30  
31   -const char hex_asc[] = "0123456789abcdef";
  31 +static const char hex_asc[] = "0123456789abcdef";
32 32 #define hex_asc_lo(x) hex_asc[((x) & 0x0f)]
33 33 #define hex_asc_hi(x) hex_asc[((x) & 0xf0) >> 4]
34 34  
... ... @@ -395,7 +395,7 @@
395 395 {
396 396 int len, i;
397 397  
398   - if (s == 0)
  398 + if (s == NULL)
399 399 s = "<NULL>";
400 400  
401 401 len = strnlen(s, precision);