diff options
| author | deraadt <> | 2014-06-07 14:41:57 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-06-07 14:41:57 +0000 |
| commit | 6e812251158ecbc0733dba21489ebce1248ebb33 (patch) | |
| tree | c0956c22011ba4358ae4ab650adf0e744f93f40c /src/lib/libcrypto/conf | |
| parent | 369f4c90b9a7f7864572479745455d29b0777219 (diff) | |
| download | openbsd-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/conf')
| -rw-r--r-- | src/lib/libcrypto/conf/conf_def.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/conf/conf_def.c b/src/lib/libcrypto/conf/conf_def.c index b550623e57..5fee2e5cfc 100644 --- a/src/lib/libcrypto/conf/conf_def.c +++ b/src/lib/libcrypto/conf/conf_def.c | |||
| @@ -229,7 +229,7 @@ def_load_bio(CONF *conf, BIO *in, long *line) | |||
| 229 | goto err; | 229 | goto err; |
| 230 | } | 230 | } |
| 231 | 231 | ||
| 232 | section = (char *)malloc(10); | 232 | section = malloc(10); |
| 233 | if (section == NULL) { | 233 | if (section == NULL) { |
| 234 | CONFerr(CONF_F_DEF_LOAD_BIO, ERR_R_MALLOC_FAILURE); | 234 | CONFerr(CONF_F_DEF_LOAD_BIO, ERR_R_MALLOC_FAILURE); |
| 235 | goto err; | 235 | goto err; |
| @@ -361,14 +361,14 @@ again: | |||
| 361 | p++; | 361 | p++; |
| 362 | *p = '\0'; | 362 | *p = '\0'; |
| 363 | 363 | ||
| 364 | if (!(v = (CONF_VALUE *)malloc(sizeof(CONF_VALUE)))) { | 364 | if (!(v = malloc(sizeof(CONF_VALUE)))) { |
| 365 | CONFerr(CONF_F_DEF_LOAD_BIO, | 365 | CONFerr(CONF_F_DEF_LOAD_BIO, |
| 366 | ERR_R_MALLOC_FAILURE); | 366 | ERR_R_MALLOC_FAILURE); |
| 367 | goto err; | 367 | goto err; |
| 368 | } | 368 | } |
| 369 | if (psection == NULL) | 369 | if (psection == NULL) |
| 370 | psection = section; | 370 | psection = section; |
| 371 | v->name = (char *)malloc(strlen(pname) + 1); | 371 | v->name = malloc(strlen(pname) + 1); |
| 372 | v->value = NULL; | 372 | v->value = NULL; |
| 373 | if (v->name == NULL) { | 373 | if (v->name == NULL) { |
| 374 | CONFerr(CONF_F_DEF_LOAD_BIO, | 374 | CONFerr(CONF_F_DEF_LOAD_BIO, |
