@@ -72,7 +72,7 @@ PDCobj_create(pdcid_t cont_id, const char *obj_name, pdcid_t obj_prop_id)
72
72
pdcid_t ret_value = 0 ;
73
73
FUNC_ENTER (NULL );
74
74
#if 0
75
- p = PDC_MALLOC (struct _pdc_obj_info );
75
+ p = (struct _pdc_obj_info * ) PDC_malloc ( sizeof ( struct _pdc_obj_info ) );
76
76
if (!p )
77
77
PGOTO_ERROR (0 , "PDC object memory allocation failed" );
78
78
p -> metadata = NULL ;
@@ -146,7 +146,7 @@ PDCobj_create(pdcid_t cont_id, const char *obj_name, pdcid_t obj_prop_id)
146
146
if (obj_prop -> tags )
147
147
p -> obj_pt -> tags = strdup (obj_prop -> tags );
148
148
149
- p -> obj_info_pub = PDC_MALLOC (struct pdc_obj_info );
149
+ p -> obj_info_pub = (struct pdc_obj_info * ) PDC_malloc ( sizeof ( struct pdc_obj_info ) );
150
150
if (!p -> obj_info_pub )
151
151
PGOTO_ERROR (0 , "PDC pub object memory allocation failed" );
152
152
p -> obj_info_pub -> name = strdup (obj_name );
@@ -239,7 +239,7 @@ PDC_obj_create(pdcid_t cont_id, const char *obj_name, pdcid_t obj_prop_id, _pdc_
239
239
240
240
FUNC_ENTER (NULL );
241
241
242
- p = PDC_MALLOC (struct _pdc_obj_info );
242
+ p = (struct _pdc_obj_info * ) PDC_malloc ( sizeof ( struct _pdc_obj_info ) );
243
243
if (!p )
244
244
PGOTO_ERROR (0 , "PDC object memory allocation failed" );
245
245
p -> metadata = NULL ;
@@ -329,7 +329,7 @@ PDC_obj_create(pdcid_t cont_id, const char *obj_name, pdcid_t obj_prop_id, _pdc_
329
329
p -> local_transfer_request_end = NULL ;
330
330
p -> local_transfer_request_size = 0 ;
331
331
/* struct pdc_obj_info field */
332
- p -> obj_info_pub = PDC_MALLOC (struct pdc_obj_info );
332
+ p -> obj_info_pub = (struct pdc_obj_info * ) PDC_malloc ( sizeof ( struct pdc_obj_info ) );
333
333
if (!p -> obj_info_pub )
334
334
PGOTO_ERROR (0 , "PDC pub object memory allocation failed" );
335
335
p -> obj_info_pub -> name = strdup (obj_name );
@@ -537,7 +537,7 @@ PDCobj_open_common(const char *obj_name, pdcid_t pdc, int is_col)
537
537
538
538
FUNC_ENTER (NULL );
539
539
540
- p = PDC_MALLOC (struct _pdc_obj_info );
540
+ p = (struct _pdc_obj_info * ) PDC_malloc ( sizeof ( struct _pdc_obj_info ) );
541
541
if (!p )
542
542
PGOTO_ERROR (0 , "PDC object memory allocation failed" );
543
543
p -> cont = PDC_CALLOC (1 , struct _pdc_cont_info );
@@ -558,7 +558,7 @@ PDCobj_open_common(const char *obj_name, pdcid_t pdc, int is_col)
558
558
p -> obj_pt -> obj_prop_pub = PDC_CALLOC (1 , struct pdc_obj_prop );
559
559
if (!p -> obj_pt -> obj_prop_pub )
560
560
PGOTO_ERROR (0 , "PDC object property memory allocation failed" );
561
- p -> obj_info_pub = PDC_MALLOC (struct pdc_obj_info );
561
+ p -> obj_info_pub = (struct pdc_obj_info * ) PDC_malloc ( sizeof ( struct pdc_obj_info ) );
562
562
if (!p -> obj_info_pub )
563
563
PGOTO_ERROR (0 , "PDC pub object memory allocation failed" );
564
564
p -> obj_info_pub -> obj_pt = PDC_CALLOC (1 , struct pdc_obj_prop );
0 commit comments