Stop const mismatch warning in VC++.
This commit is contained in:
parent
a75c662fd1
commit
dd043cd501
16
apps/apps.c
16
apps/apps.c
@ -1477,7 +1477,7 @@ char *make_config_name()
|
|||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned long index_serial_hash(const STRING *a)
|
static unsigned long index_serial_hash(const CSTRING *a)
|
||||||
{
|
{
|
||||||
const char *n;
|
const char *n;
|
||||||
|
|
||||||
@ -1486,7 +1486,7 @@ static unsigned long index_serial_hash(const STRING *a)
|
|||||||
return(lh_strhash(n));
|
return(lh_strhash(n));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int index_serial_cmp(const STRING *a, const STRING *b)
|
static int index_serial_cmp(const CSTRING *a, const CSTRING *b)
|
||||||
{
|
{
|
||||||
const char *aa,*bb;
|
const char *aa,*bb;
|
||||||
|
|
||||||
@ -1498,16 +1498,16 @@ static int index_serial_cmp(const STRING *a, const STRING *b)
|
|||||||
static int index_name_qual(char **a)
|
static int index_name_qual(char **a)
|
||||||
{ return(a[0][0] == 'V'); }
|
{ return(a[0][0] == 'V'); }
|
||||||
|
|
||||||
static unsigned long index_name_hash(const STRING *a)
|
static unsigned long index_name_hash(const CSTRING *a)
|
||||||
{ return(lh_strhash(a[DB_name])); }
|
{ return(lh_strhash(a[DB_name])); }
|
||||||
|
|
||||||
int index_name_cmp(const STRING *a, const STRING *b)
|
int index_name_cmp(const CSTRING *a, const CSTRING *b)
|
||||||
{ return(strcmp(a[DB_name], b[DB_name])); }
|
{ return(strcmp(a[DB_name], b[DB_name])); }
|
||||||
|
|
||||||
static IMPLEMENT_LHASH_HASH_FN(index_serial, STRING)
|
static IMPLEMENT_LHASH_HASH_FN(index_serial, CSTRING)
|
||||||
static IMPLEMENT_LHASH_COMP_FN(index_serial, STRING)
|
static IMPLEMENT_LHASH_COMP_FN(index_serial, CSTRING)
|
||||||
static IMPLEMENT_LHASH_HASH_FN(index_name, STRING)
|
static IMPLEMENT_LHASH_HASH_FN(index_name, CSTRING)
|
||||||
static IMPLEMENT_LHASH_COMP_FN(index_name, STRING)
|
static IMPLEMENT_LHASH_COMP_FN(index_name, CSTRING)
|
||||||
|
|
||||||
#undef BSIZE
|
#undef BSIZE
|
||||||
#define BSIZE 256
|
#define BSIZE 256
|
||||||
|
@ -294,7 +294,7 @@ int index_index(CA_DB *db);
|
|||||||
int save_index(const char *dbfile, const char *suffix, CA_DB *db);
|
int save_index(const char *dbfile, const char *suffix, CA_DB *db);
|
||||||
int rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix);
|
int rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix);
|
||||||
void free_index(CA_DB *db);
|
void free_index(CA_DB *db);
|
||||||
int index_name_cmp(const STRING *a, const STRING *b);
|
int index_name_cmp(const CSTRING *a, const CSTRING *b);
|
||||||
int parse_yesno(const char *str, int def);
|
int parse_yesno(const char *str, int def);
|
||||||
|
|
||||||
X509_NAME *parse_name(char *str, long chtype, int multirdn);
|
X509_NAME *parse_name(char *str, long chtype, int multirdn);
|
||||||
|
Loading…
Reference in New Issue
Block a user