mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Initialise `hex' at the top of the file, ISO C requires that an array with
internal linkage has a complete type.
This commit is contained in:
parent
264d3e6b45
commit
a4229919e2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146841
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user