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

Commit 4abbc60

Browse files
committed
Merge pull request #6 from ana/master
Initialize variables
2 parents 67c0807 + 3ed624f commit 4abbc60

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

psm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ typedef struct psm_error_token *psm_error_token_t;
275275
* individually set for each opened endpoint. By default, endpoints will
276276
* inherit the global handler registered at the time of open.
277277
*
278-
* [in] ep Handle associated to the endpoint over which the error occured
278+
* [in] ep Handle associated to the endpoint over which the error occurred
279279
* or NULL if the error is being handled by the global error
280280
* handler.
281281
* [in] error PSM error identifier

psm_diags.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ memcpy_check_size (memcpy_fn_t fn, int *p, int *f, size_t n)
287287
return -1;
288288
}
289289
else {
290-
void *src_p, *dst_p;
290+
void *src_p = NULL, *dst_p = NULL;
291291
if (posix_memalign(&src_p, 64, size) != 0 ||
292292
posix_memalign(&dst_p, 64, size) != 0) {
293293
if (src_p) psmi_free(src_p);

psm_error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ psmi_error_items[] = {
251251
{ PSMI_NOLOG, "unknown 37" },
252252
{ PSMI_NOLOG, "unknown 38" },
253253
{ PSMI_NOLOG, "unknown 39" },
254-
{ PSMI_NOLOG, "Unknown/unresolved connection status (other errors occured)" }, /* PSM_EPID_UNKNOWN = 40 */
254+
{ PSMI_NOLOG, "Unknown/unresolved connection status (other errors occurred)" }, /* PSM_EPID_UNKNOWN = 40 */
255255
{ PSMI_NOLOG, "Endpoint could not be reached" }, /* PSM_EPID_UNREACHABLE = 41 */
256256
{ PSMI_NOLOG, "unknown 42" },
257257
{ LOG_CRIT , "Invalid node (mismatch in bit width 32/64 or byte order)" }, /* PSM_EPID_INVALID_NODE = 43 */

psm_mq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ psm_mq_test(psm_mq_req_t *request, psm_mq_status_t *status);
552552
*
553553
* [retval] PSM_OK The request could be successfully cancelled such that the
554554
* preposted receive buffer could be removed from the preposted
555-
* receive queue before a match occured. The associated @c
555+
* receive queue before a match occurred. The associated @c
556556
* request remains unchanged and the user must still return
557557
* the storage to the MQ library.
558558
*

ptl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ struct ptl_ctl
130130
* ptl needs.
131131
* post 1: PTL marks error[i] as UNREACHABLE if PTL can't get to epid[i]
132132
* post 2: PTL marks error[i] as UNKNOWN for all epid[i] that couldn't be
133-
* connected before a timeout occured.
133+
* connected before a timeout occurred.
134134
* post 3: PTL returns OK iff all epids are either OK or UNREACHABLE
135135
* post 4: PTL defines content or epaddr[i] only if epaddr[i] is OK.
136136
*/

ptl_am/am_reqrep_shmem.c

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

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

ptl_ips/ips_spio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ spio_update_shadow(struct ips_spio *ctrl, int index)
324324
}
325325

326326
if (event_mask & IPATH_EVENT_LID_CHANGE) {
327-
/* Display a warning that LID change has occured during the run. This
327+
/* Display a warning that LID change has occurred during the run. This
328328
* is not supported in the current implementation and in general is
329329
* bad for the SM to re-assign LIDs during a run.
330330
*/

0 commit comments

Comments
 (0)