mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
2638. [bug] Silence compiler warnings in gssapi code. [RT #19954]
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: spnego.c,v 1.11 2009/07/20 01:55:37 marka Exp $ */
|
||||
/* $Id: spnego.c,v 1.12 2009/07/21 06:53:09 marka Exp $ */
|
||||
|
||||
/*! \file
|
||||
* \brief
|
||||
@@ -265,8 +265,7 @@ decode_oid(const unsigned char *p, size_t len,
|
||||
oid * k, size_t * size);
|
||||
|
||||
static int
|
||||
decode_enumerated(const unsigned char *p, size_t len,
|
||||
unsigned *num, size_t *size);
|
||||
decode_enumerated(const unsigned char *p, size_t len, void *num, size_t *size);
|
||||
|
||||
static int
|
||||
decode_octet_string(const unsigned char *, size_t, octet_string *, size_t *);
|
||||
@@ -291,8 +290,7 @@ der_put_length_and_tag(unsigned char *, size_t, size_t,
|
||||
Der_class, Der_type, int, size_t *);
|
||||
|
||||
static int
|
||||
encode_enumerated(unsigned char *p, size_t len,
|
||||
const unsigned *data, size_t *);
|
||||
encode_enumerated(unsigned char *p, size_t len, const void *data, size_t *);
|
||||
|
||||
static int
|
||||
encode_octet_string(unsigned char *p, size_t len,
|
||||
@@ -956,8 +954,7 @@ der_match_tag_and_length(const unsigned char *p, size_t len,
|
||||
}
|
||||
|
||||
static int
|
||||
decode_enumerated(const unsigned char *p, size_t len,
|
||||
unsigned *num, size_t *size)
|
||||
decode_enumerated(const unsigned char *p, size_t len, void *num, size_t *size)
|
||||
{
|
||||
size_t ret = 0;
|
||||
size_t l, reallen;
|
||||
@@ -1269,10 +1266,9 @@ der_put_length_and_tag(unsigned char *p, size_t len, size_t len_val,
|
||||
}
|
||||
|
||||
static int
|
||||
encode_enumerated(unsigned char *p, size_t len, const unsigned *data,
|
||||
size_t *size)
|
||||
encode_enumerated(unsigned char *p, size_t len, const void *data, size_t *size)
|
||||
{
|
||||
unsigned num = *data;
|
||||
unsigned num = *(const unsigned *)data;
|
||||
size_t ret = 0;
|
||||
size_t l;
|
||||
int e;
|
||||
|
Reference in New Issue
Block a user