Fix bug in obj_decrepit.c
Interestingly, Windows caught this with: ..\decrepit\obj\obj_decrepit.c(33) : warning C4090: 'function' : different 'const' qualifiers However, the value of |name| isn't const, only the thing that it points to. So this seems like a bug in MSVC, but I'm ok with it this time. Change-Id: I076f98339cb0b669a4f592fba89aafc0a580efc4 Reviewed-on: https://boringssl-review.googlesource.com/7404 Reviewed-by: David Benjamin <davidben@google.com>
This commit is contained in:
parent
ef18746ad4
commit
f202d96875
@ -30,7 +30,7 @@ static void cipher_callback(const EVP_CIPHER *cipher, const char *name,
|
|||||||
const struct wrapped_callback *wrapped = (struct wrapped_callback *)arg;
|
const struct wrapped_callback *wrapped = (struct wrapped_callback *)arg;
|
||||||
OBJ_NAME obj_name;
|
OBJ_NAME obj_name;
|
||||||
|
|
||||||
memset(&name, 0, sizeof(name));
|
memset(&obj_name, 0, sizeof(obj_name));
|
||||||
obj_name.type = OBJ_NAME_TYPE_CIPHER_METH;
|
obj_name.type = OBJ_NAME_TYPE_CIPHER_METH;
|
||||||
obj_name.name = name;
|
obj_name.name = name;
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ static void md_callback(const EVP_MD *md, const char *name, const char *unused,
|
|||||||
const struct wrapped_callback *wrapped = (struct wrapped_callback*) arg;
|
const struct wrapped_callback *wrapped = (struct wrapped_callback*) arg;
|
||||||
OBJ_NAME obj_name;
|
OBJ_NAME obj_name;
|
||||||
|
|
||||||
memset(&name, 0, sizeof(name));
|
memset(&obj_name, 0, sizeof(obj_name));
|
||||||
obj_name.type = OBJ_NAME_TYPE_MD_METH;
|
obj_name.type = OBJ_NAME_TYPE_MD_METH;
|
||||||
obj_name.name = name;
|
obj_name.name = name;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user