summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/store/str_lib.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_lib.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_lib.c')
-rw-r--r--src/lib/libcrypto/store/str_lib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/store/str_lib.c b/src/lib/libcrypto/store/str_lib.c
index c50620308a..0f88664acd 100644
--- a/src/lib/libcrypto/store/str_lib.c
+++ b/src/lib/libcrypto/store/str_lib.c
@@ -109,7 +109,7 @@ STORE_new_method(const STORE_METHOD *method)
109 return NULL; 109 return NULL;
110 } 110 }
111 111
112 ret = (STORE *)malloc(sizeof(STORE)); 112 ret = malloc(sizeof(STORE));
113 if (ret == NULL) { 113 if (ret == NULL) {
114 STOREerr(STORE_F_STORE_NEW_METHOD, ERR_R_MALLOC_FAILURE); 114 STOREerr(STORE_F_STORE_NEW_METHOD, ERR_R_MALLOC_FAILURE);
115 return NULL; 115 return NULL;
@@ -1226,7 +1226,7 @@ struct STORE_attr_info_st {
1226STORE_ATTR_INFO * 1226STORE_ATTR_INFO *
1227STORE_ATTR_INFO_new(void) 1227STORE_ATTR_INFO_new(void)
1228{ 1228{
1229 return (STORE_ATTR_INFO *)malloc(sizeof(STORE_ATTR_INFO)); 1229 return malloc(sizeof(STORE_ATTR_INFO));
1230} 1230}
1231 1231
1232static void 1232static void
@@ -1489,7 +1489,8 @@ STORE_parse_attrs_start(OPENSSL_ITEM *attributes)
1489{ 1489{
1490 if (attributes) { 1490 if (attributes) {
1491 struct attr_list_ctx_st *context = 1491 struct attr_list_ctx_st *context =
1492 (struct attr_list_ctx_st *)malloc(sizeof(struct attr_list_ctx_st)); 1492 malloc(sizeof(struct attr_list_ctx_st));
1493
1493 if (context) 1494 if (context)
1494 context->attributes = attributes; 1495 context->attributes = attributes;
1495 else 1496 else