diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-06-07 14:41:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-06-07 14:41:58 +0000 |
commit | 266f7f14bb884216f7d07623deb97d8d3487e964 (patch) | |
tree | 8b13bd4c0ad356be648d746cb75b920d0e35f921 /lib/libcrypto/lhash/lhash.c | |
parent | 09eb0761c8d7243f1ecd9af78bb13ddab0d30b0e (diff) |
malloc() result does not need a cast.
ok miod
Diffstat (limited to 'lib/libcrypto/lhash/lhash.c')
-rw-r--r-- | lib/libcrypto/lhash/lhash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/lhash/lhash.c b/lib/libcrypto/lhash/lhash.c index 932391fa1e6..bbb46508f1e 100644 --- a/lib/libcrypto/lhash/lhash.c +++ b/lib/libcrypto/lhash/lhash.c @@ -191,7 +191,7 @@ lh_insert(_LHASH *lh, void *data) rn = getrn(lh, data, &hash); if (*rn == NULL) { - if ((nn = (LHASH_NODE *)malloc(sizeof(LHASH_NODE))) == NULL) { + if ((nn = malloc(sizeof(LHASH_NODE))) == NULL) { lh->error++; return (NULL); } |