Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 5, 2024
1 parent ab351e1 commit 8fd5136
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 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
1 change: 0 additions & 1 deletion src/commons/utils/include/pdc_malloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,4 @@ void *PDC_free(void *mem);
*/
size_t PDC_get_global_mem_usage();


#endif /* PDC_MALLOC_H */

0 comments on commit 8fd5136

Please sign in to comment.