summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2005-05-31 21:19:14 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2005-05-31 21:19:14 +0000
commita4229919e27df75a35a0d3b81e477af041ac569c (patch)
tree058a7f2ede24a3bfdae514ae3a04e41ca4e4165c
parent264d3e6b45fdf74379edd4837d1d356db97fa3ad (diff)
Notes
-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 aa5d8ae92225..ed6cbefcc14e 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;