Skip to content

Commit

Permalink
Solve compilation issue for type casting
Browse files Browse the repository at this point in the history
Change-Id: If9ce191a8d09ccf4cd46fd9daabb26bfe8012fef
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45780
Reviewed-by: ARAVIND T. NAIR <aravindnair@in.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Srikantha S. Meesala <srikantha@in.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45791
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
  • Loading branch information
sgupta2m authored and dcrowell77 committed Sep 8, 2017
1 parent e256039 commit b786d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/import/chips/p9/utils/imageProcs/p9_dd_container.c
Expand Up @@ -143,7 +143,7 @@ struct p9_dd_cont* p9_dd_create(void)
{
struct p9_dd_cont* cont;

cont = malloc(sizeof(struct p9_dd_cont));
cont = (struct p9_dd_cont*)malloc(sizeof(struct p9_dd_cont));

if (!cont)
{
Expand Down Expand Up @@ -210,7 +210,7 @@ int p9_dd_add(
enlarged = p9_dd_size(cont) + sizeof(struct p9_dd_block) + i_buf_size;

// re-allocate to enlarge container (content is retained and consistent)
cont = realloc(cont, enlarged);
cont = (struct p9_dd_cont*)realloc(cont, enlarged);

if (!cont)
{
Expand Down

0 comments on commit b786d11

Please sign in to comment.