Skip to content

Commit

Permalink
Formatting switched PDC_malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyunju Oh committed Dec 11, 2023
1 parent dd3628f commit b3355e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/api/pdc_analysis/pdc_analysis.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ PDCobj_analysis_register(char *func, pdcid_t iterIn, pdcid_t iterOut)
if ((ftnPtr = ftnHandle) == NULL)
PGOTO_ERROR(FAIL, "Analysis function lookup failed");

if ((thisFtn = (struct _pdc_region_analysis_ftn_info *)PDC_malloc(sizeof(struct _pdc_region_analysis_ftn_info))) == NULL)
if ((thisFtn = (struct _pdc_region_analysis_ftn_info *)PDC_malloc(
sizeof(struct _pdc_region_analysis_ftn_info))) == NULL)
PGOTO_ERROR(FAIL, "PDC register_obj_analysis memory allocation failed");

thisFtn->ftnPtr = (int (*)())ftnPtr;
Expand Down
6 changes: 4 additions & 2 deletions src/api/pdc_transform/pdc_transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ PDCobj_transform_register(char *func, pdcid_t obj_id, int current_state, int nex
if ((ftnPtr = ftnHandle) == NULL)
PGOTO_ERROR(FAIL, "Transforms function lookup failed");

if ((thisFtn = (struct _pdc_region_transform_ftn_info *)PDC_malloc(sizeof(struct _pdc_region_transform_ftn_info))) == NULL)
if ((thisFtn = (struct _pdc_region_transform_ftn_info *)PDC_malloc(
sizeof(struct _pdc_region_transform_ftn_info))) == NULL)
PGOTO_ERROR(FAIL, "PDC register_obj_transforms memory allocation failed");

memset(thisFtn, 0, sizeof(struct _pdc_region_transform_ftn_info));
Expand Down Expand Up @@ -206,7 +207,8 @@ PDCbuf_map_transform_register(char *func, void *buf, pdcid_t src_region_id, pdci
if ((ftnPtr = ftnHandle) == NULL)
PGOTO_ERROR(FAIL, "Transforms function lookup failed\n");

if ((thisFtn = (struct _pdc_region_transform_ftn_info *)PDC_malloc(sizeof(struct _pdc_region_transform_ftn_info))) == NULL)
if ((thisFtn = (struct _pdc_region_transform_ftn_info *)PDC_malloc(
sizeof(struct _pdc_region_transform_ftn_info))) == NULL)
PGOTO_ERROR(FAIL, "PDC register_obj_transforms memory allocation failed");

thisFtn->ftnPtr = (size_t(*)())ftnPtr;
Expand Down

0 comments on commit b3355e7

Please sign in to comment.