Fix "type qualifiers ignored on function return type" errors.

Change-Id: If0dbbadb33a073b4faee500fdff900a5094ec889
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
Reviewed-on: https://boringssl-review.googlesource.com/1362
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
Piotr Sikora 2014-07-31 03:13:13 -07:00 committed by Adam Langley
parent 1d8adf18d2
commit 60d4c0e810

View File

@ -154,7 +154,7 @@ int PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
pem_str,bp,x,enc,kstr,klen,cb,u);
}
static const int public_key_type_from_str(const char *name, size_t len) {
static int public_key_type_from_str(const char *name, size_t len) {
if (len == 3 && memcmp(name, "RSA", 3) == 0) {
return EVP_PKEY_RSA;
} else if (len == 2 && memcmp(name, "DH", 2) == 0) {