summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-01-07 21:20:24 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-01-07 21:20:24 (GMT)
commitf0459142d5ee827016d4135762d00c4d5744c6f2 (patch)
treea0b97ad1f333b0b8bc4fb507efe14acaebd79875 /Modules
parent3f0464839bbcab1225661c20989066f05b71374f (diff)
downloadcpython-f0459142d5ee827016d4135762d00c4d5744c6f2.zip
cpython-f0459142d5ee827016d4135762d00c4d5744c6f2.tar.gz
cpython-f0459142d5ee827016d4135762d00c4d5744c6f2.tar.bz2
Fix icc warnings: extra semi-colon and signed vs unsigned
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_hashopenssl.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c
index c0df605..a3fb052 100644
--- a/Modules/_hashopenssl.c
+++ b/Modules/_hashopenssl.c
@@ -33,12 +33,12 @@ static PyTypeObject EVPtype;
static EVP_MD_CTX CONST_new_ ## Name ## _ctx; \
static EVP_MD_CTX *CONST_new_ ## Name ## _ctx_p = NULL;
-DEFINE_CONSTS_FOR_NEW(md5);
-DEFINE_CONSTS_FOR_NEW(sha1);
-DEFINE_CONSTS_FOR_NEW(sha224);
-DEFINE_CONSTS_FOR_NEW(sha256);
-DEFINE_CONSTS_FOR_NEW(sha384);
-DEFINE_CONSTS_FOR_NEW(sha512);
+DEFINE_CONSTS_FOR_NEW(md5)
+DEFINE_CONSTS_FOR_NEW(sha1)
+DEFINE_CONSTS_FOR_NEW(sha224)
+DEFINE_CONSTS_FOR_NEW(sha256)
+DEFINE_CONSTS_FOR_NEW(sha384)
+DEFINE_CONSTS_FOR_NEW(sha512)
static EVPobject *
@@ -101,7 +101,7 @@ EVP_digest(EVPobject *self, PyObject *args)
EVP_MD_CTX_copy(&temp_ctx, &self->ctx);
digest_size = EVP_MD_CTX_size(&temp_ctx);
- EVP_DigestFinal(&temp_ctx, (char *)digest, NULL);
+ EVP_DigestFinal(&temp_ctx, digest, NULL);
retval = PyString_FromStringAndSize((const char *)digest, digest_size);
EVP_MD_CTX_cleanup(&temp_ctx);
@@ -329,7 +329,7 @@ static PyTypeObject EVPtype = {
static PyObject *
EVPnew(PyObject *name_obj,
const EVP_MD *digest, const EVP_MD_CTX *initial_ctx,
- const char *cp, unsigned int len)
+ const unsigned char *cp, unsigned int len)
{
EVPobject *self;