summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/librpcsvc/xcrypt.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/librpcsvc/xcrypt.c b/lib/librpcsvc/xcrypt.c
index aa5d8ae..ed6cbef 100644
--- a/lib/librpcsvc/xcrypt.c
+++ b/lib/librpcsvc/xcrypt.c
@@ -40,7 +40,11 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#include <rpc/des_crypt.h>
-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;
OpenPOWER on IntegriCloud