Skip to content

Commit e25b860

Browse files
committed
usnic: clarify types
The types are technically typedef equivalent, but it's less confusing to use the types that agree with the name of the constructor. Signed-off-by: Jeff Squyres <[email protected]>
1 parent 40fe575 commit e25b860

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

opal/mca/btl/usnic/btl_usnic_frag.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* All rights reserved.
1212
* Copyright (c) 2006 Sandia National Laboratories. All rights
1313
* reserved.
14-
* Copyright (c) 2013-2015 Cisco Systems, Inc. All rights reserved.
14+
* Copyright (c) 2013-2017 Cisco Systems, Inc. All rights reserved.
1515
* $COPYRIGHT$
1616
*
1717
* Additional copyrights may follow
@@ -50,15 +50,15 @@ common_send_seg_helper(opal_btl_usnic_send_segment_t *seg)
5050

5151
static void
5252
chunk_seg_constructor(
53-
opal_btl_usnic_send_segment_t *seg)
53+
opal_btl_usnic_chunk_segment_t *cseg)
5454
{
5555
opal_btl_usnic_segment_t *bseg;
5656

57-
bseg = &seg->ss_base;
57+
bseg = &cseg->ss_base;
5858
bseg->us_type = OPAL_BTL_USNIC_SEG_CHUNK;
5959

6060
/* some more common initializaiton */
61-
common_send_seg_helper(seg);
61+
common_send_seg_helper(cseg);
6262

6363
/* payload starts next byte beyond BTL chunk header */
6464
bseg->us_payload.raw = (uint8_t *)(bseg->us_btl_chunk_header + 1);
@@ -68,15 +68,15 @@ chunk_seg_constructor(
6868

6969
static void
7070
frag_seg_constructor(
71-
opal_btl_usnic_send_segment_t *seg)
71+
opal_btl_usnic_frag_segment_t *fseg)
7272
{
7373
opal_btl_usnic_segment_t *bseg;
7474

75-
bseg = &seg->ss_base;
75+
bseg = &fseg->ss_base;
7676
bseg->us_type = OPAL_BTL_USNIC_SEG_FRAG;
7777

7878
/* some more common initializaiton */
79-
common_send_seg_helper(seg);
79+
common_send_seg_helper(fseg);
8080

8181
/* payload starts next byte beyond BTL header */
8282
bseg->us_payload.raw = (uint8_t *)(bseg->us_btl_header + 1);
@@ -86,7 +86,7 @@ frag_seg_constructor(
8686

8787
static void
8888
ack_seg_constructor(
89-
opal_btl_usnic_send_segment_t *ack)
89+
opal_btl_usnic_ack_segment_t *ack)
9090
{
9191
opal_btl_usnic_segment_t *bseg;
9292

0 commit comments

Comments
 (0)