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 <string.h>
|
||||||
#include <rpc/des_crypt.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 char hexval( char );
|
||||||
static void bin2hex( int, unsigned char *, char * );
|
static void bin2hex( int, unsigned char *, char * );
|
||||||
static void hex2bin( int, char *, char * );
|
static void hex2bin( int, char *, char * );
|
||||||
@ -168,11 +172,6 @@ bin2hex(len, binnum, hexnum)
|
|||||||
hexnum[len*2] = 0;
|
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
|
static char
|
||||||
hexval(c)
|
hexval(c)
|
||||||
char c;
|
char c;
|
||||||
|
Loading…
Reference in New Issue
Block a user