11/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ 
22/* 
3-  * Copyright (c) 2014 -  2015       Intel, Inc. All rights reserved. 
3+  * Copyright (c) 2014- 2015 Intel, Inc. All rights reserved. 
44 * $COPYRIGHT$ 
55 * 
66 * Additional copyrights may follow 
@@ -87,8 +87,10 @@ static void qos_noop_shutdown (void) {
8787
8888static  void *  noop_create  (opal_list_t  * qos_attributes , uint32_t  channel_num ) {
8989    orte_qos_base_channel_t  *  noop_chan ;
90-     int32_t  rc , * window , * type ,  window_val ;
90+     int32_t  rc , * window , window_val ;
9191    orte_qos_type_t  type_val  =  orte_qos_noop ;
92+     orte_qos_type_t  * type ;
93+     
9294    noop_chan  =  OBJ_NEW  (orte_qos_base_channel_t );
9395    noop_chan -> channel_num  =  channel_num ;
9496    type  =  & type_val ;
@@ -118,7 +120,8 @@ static void* noop_create (opal_list_t *qos_attributes, uint32_t channel_num) {
118120    return  noop_chan ;
119121}
120122
121- static  int  noop_open  (void  * qos_channel , opal_buffer_t  *  buf )  {
123+ static  int  noop_open  (void  * qos_channel , opal_buffer_t  *  buf )
124+ {
122125    int32_t  rc  =  ORTE_SUCCESS ;
123126    orte_qos_base_channel_t  * noop_chan ;
124127    noop_chan  =  (orte_qos_base_channel_t * ) (qos_channel );
@@ -129,24 +132,27 @@ static int noop_open (void *qos_channel, opal_buffer_t * buf)  {
129132    return  rc ;
130133}
131134
132- static  int  noop_send  ( void  * qos_channel ,  orte_rml_send_t  * msg ) {
135+ static  int  noop_send  ( void  * qos_channel ,  orte_rml_send_t  * msg )
136+ {
133137    //nothing to do 
134138    OPAL_OUTPUT_VERBOSE ((1 , orte_qos_base_framework .framework_output ,
135139                         "%s noop_send msg = %p to peer = %s\n" ,
136140                         ORTE_NAME_PRINT (ORTE_PROC_MY_NAME ),
137-                          msg , ORTE_NAME_PRINT (& msg -> dst )));
141+                          ( void * ) msg , ORTE_NAME_PRINT (& msg -> dst )));
138142    return  ORTE_SUCCESS ;
139143}
140144
141- static  int  noop_recv  (void  * qos_channel , orte_rml_recv_t  * msg ) {
145+ static  int  noop_recv  (void  * qos_channel , orte_rml_recv_t  * msg )
146+ {
142147    OPAL_OUTPUT_VERBOSE ((1 , orte_qos_base_framework .framework_output ,
143148                         "%s noop_recv msg = %p from peer = %s\n" ,
144149                         ORTE_NAME_PRINT (ORTE_PROC_MY_NAME ),
145-                          msg , ORTE_NAME_PRINT (& msg -> sender )));
150+                          ( void * ) msg , ORTE_NAME_PRINT (& msg -> sender )));
146151    return  ORTE_SUCCESS ;
147152}
148153
149- static  int  noop_close  (void  *  channel ) {
154+ static  int  noop_close  (void  *  channel )
155+ {
150156    orte_qos_base_channel_t  * noop_chan ;
151157    if (NULL  !=  channel ) {
152158        noop_chan  =  (orte_qos_base_channel_t * ) channel ;
@@ -157,11 +163,13 @@ static int noop_close (void * channel) {
157163
158164}
159165
160- static  int  noop_init_recv  (void  * channel , opal_list_t  * attributes ) {
166+ static  int  noop_init_recv  (void  * channel , opal_list_t  * attributes )
167+ {
161168    return  ORTE_SUCCESS ;
162169}
163170
164- static  int  noop_cmp  (void  * channel , opal_list_t  * attributes ) {
171+ static  int  noop_cmp  (void  * channel , opal_list_t  * attributes )
172+ {
165173    int32_t  chan_typea , chan_typeb ,  * ptr , window_sizea , window_sizeb ;
166174    orte_qos_base_channel_t  * noop_chan  =  (orte_qos_base_channel_t * ) channel ;
167175    ptr  =  & chan_typea ;
@@ -183,7 +191,8 @@ static int noop_cmp (void *channel, opal_list_t *attributes) {
183191        return  ORTE_ERROR ;
184192}
185193
186- static  void  noop_send_callback  (orte_rml_send_t  * msg ) {
194+ static  void  noop_send_callback  (orte_rml_send_t  * msg )
195+ {
187196    // nothing to do for noop 
188197    ORTE_RML_SEND_COMPLETE (msg );
189198}
0 commit comments