Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 326b95a

Browse files
authored
Merge pull request #12 from ana/master
A couple of GCC fixes
2 parents 4abbc60 + 87aa2f5 commit 326b95a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

psm_diags.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,11 @@ memcpy_check_size (memcpy_fn_t fn, int *p, int *f, size_t n)
281281
if (USE_MALLOC) {
282282
src = psmi_malloc(PSMI_EP_NONE, UNDEFINED, size);
283283
dst = psmi_malloc(PSMI_EP_NONE, UNDEFINED, size);
284-
if (src == NULL || dst == NULL)
284+
if (src == NULL || dst == NULL) {
285285
if (src) psmi_free(src);
286286
if (dst) psmi_free(dst);
287287
return -1;
288+
}
288289
}
289290
else {
290291
void *src_p = NULL, *dst_p = NULL;

ptl_am/am_reqrep_shmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ psmi_shm_attach(psm_ep_t ep, int *shmidx_o)
542542

543543
ep->amsh_dirpage->is_init = 1;
544544
_IPATH_PRDBG("Mapped and initialized shm object control page at %p,"
545-
"size=%ld, kcopy minor is %d (mode=%s)\n", mapptr,
545+
"size=%zu, kcopy minor is %d (mode=%s)\n", mapptr,
546546
segsz, kcopy_minor,
547547
psmi_kassist_getmode(ep->psmi_kassist_mode));
548548
}

0 commit comments

Comments
 (0)