From 266f7f14bb884216f7d07623deb97d8d3487e964 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 7 Jun 2014 14:41:58 +0000 Subject: malloc() result does not need a cast. ok miod --- lib/libcrypto/lhash/lhash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libcrypto/lhash/lhash.c') 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); } -- cgit v1.2.3