diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-05-31 21:19:14 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-05-31 21:19:14 +0000 |
commit | 4c49213d74f28149f66706bd24f323f088d3daea (patch) | |
tree | 058a7f2ede24a3bfdae514ae3a04e41ca4e4165c /lib/librpcsvc | |
parent | 5501aba5ef5ad5c50541dbd984c4cf29448d7e23 (diff) | |
download | FreeBSD-src-4c49213d74f28149f66706bd24f323f088d3daea.zip FreeBSD-src-4c49213d74f28149f66706bd24f323f088d3daea.tar.gz |
Initialise `hex' at the top of the file, ISO C requires that an array with
internal linkage has a complete type.
Diffstat (limited to 'lib/librpcsvc')
-rw-r--r-- | lib/librpcsvc/xcrypt.c | 11 |
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; |