From 3e969125c56124d43699da67e645d50287647619 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sun, 28 Jun 2015 19:17:15 +0200 Subject: [PATCH] define auxiliary array as static --- hermit/libkern/printf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hermit/libkern/printf.c b/hermit/libkern/printf.c index 2284666fb..e1345b91f 100644 --- a/hermit/libkern/printf.c +++ b/hermit/libkern/printf.c @@ -46,6 +46,7 @@ #include +/* HermitCore use only the 64bit version */ #define __64BIT__ #ifdef __64BIT__ @@ -63,7 +64,7 @@ typedef unsigned long long u_quad_t; typedef long long quad_t; typedef unsigned long uintptr_t; #define NBBY 8 /* number of bits in a byte */ -char const hex2ascii_data[] = "0123456789abcdefghijklmnopqrstuvwxyz"; +static char const hex2ascii_data[] = "0123456789abcdefghijklmnopqrstuvwxyz"; #define hex2ascii(hex) (hex2ascii_data[hex]) #define va_list __builtin_va_list #define va_start __builtin_va_start