From a4229919e27df75a35a0d3b81e477af041ac569c Mon Sep 17 00:00:00 2001 From: Stefan Farfeleder Date: Tue, 31 May 2005 21:19:14 +0000 Subject: [PATCH] Initialise `hex' at the top of the file, ISO C requires that an array with internal linkage has a complete type. --- lib/librpcsvc/xcrypt.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/librpcsvc/xcrypt.c b/lib/librpcsvc/xcrypt.c index aa5d8ae92225..ed6cbefcc14e 100644 --- a/lib/librpcsvc/xcrypt.c +++ b/lib/librpcsvc/xcrypt.c @@ -40,7 +40,11 @@ __FBSDID("$FreeBSD$"); #include #include -static char hex[]; /* forward */ +static char hex[16] = { + '0', '1', '2', '3', '4', '5', '6', '7', + '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', +}; + static char hexval( char ); static void bin2hex( int, unsigned char *, char * ); static void hex2bin( int, char *, char * ); @@ -168,11 +172,6 @@ bin2hex(len, binnum, hexnum) hexnum[len*2] = 0; } -static char hex[16] = { - '0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', -}; - static char hexval(c) char c;