max-life and max-renew is of unsigned int in asn1 compiler, use that
for the parser too git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14737 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -117,7 +117,7 @@ parse_time_string_alloc (time_t **t, const char *s)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
static int
|
static int
|
||||||
parse_integer(unsigned *u, const char *s)
|
parse_integer(unsigned int *u, const char *s)
|
||||||
{
|
{
|
||||||
if(strcmp(s, "-") == 0)
|
if(strcmp(s, "-") == 0)
|
||||||
return 0;
|
return 0;
|
||||||
@@ -127,9 +127,9 @@ parse_integer(unsigned *u, const char *s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
parse_integer_alloc (int **u, const char *s)
|
parse_integer_alloc (unsigned int **u, const char *s)
|
||||||
{
|
{
|
||||||
unsigned tmp;
|
unsigned int tmp;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
*u = NULL;
|
*u = NULL;
|
||||||
@@ -275,7 +275,7 @@ static int
|
|||||||
parse_hdbflags2int(HDBFlags *f, const char *s)
|
parse_hdbflags2int(HDBFlags *f, const char *s)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
unsigned tmp;
|
unsigned int tmp;
|
||||||
|
|
||||||
ret = parse_integer (&tmp, s);
|
ret = parse_integer (&tmp, s);
|
||||||
if (ret == 1)
|
if (ret == 1)
|
||||||
|
Reference in New Issue
Block a user