summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/store/str_mem.c
diff options
context:
space:
mode:
authorderaadt <>2014-06-07 14:41:57 +0000
committerderaadt <>2014-06-07 14:41:57 +0000
commit6e812251158ecbc0733dba21489ebce1248ebb33 (patch)
treec0956c22011ba4358ae4ab650adf0e744f93f40c /src/lib/libcrypto/store/str_mem.c
parent369f4c90b9a7f7864572479745455d29b0777219 (diff)
downloadopenbsd-6e812251158ecbc0733dba21489ebce1248ebb33.tar.gz
openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.tar.bz2
openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.zip
malloc() result does not need a cast.
ok miod
Diffstat (limited to 'src/lib/libcrypto/store/str_mem.c')
-rw-r--r--src/lib/libcrypto/store/str_mem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/store/str_mem.c b/src/lib/libcrypto/store/str_mem.c
index 0409fd198d..d59799196a 100644
--- a/src/lib/libcrypto/store/str_mem.c
+++ b/src/lib/libcrypto/store/str_mem.c
@@ -224,8 +224,7 @@ static void *
224mem_list_start(STORE *s, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[], 224mem_list_start(STORE *s, STORE_OBJECT_TYPES type, OPENSSL_ITEM attributes[],
225 OPENSSL_ITEM parameters[]) 225 OPENSSL_ITEM parameters[])
226{ 226{
227 struct mem_ctx_st *context = 227 struct mem_ctx_st *context = malloc(sizeof(struct mem_ctx_st));
228 (struct mem_ctx_st *)malloc(sizeof(struct mem_ctx_st));
229 void *attribute_context = NULL; 228 void *attribute_context = NULL;
230 STORE_ATTR_INFO *attrs = NULL; 229 STORE_ATTR_INFO *attrs = NULL;
231 230