]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/liborte/RTPSInfoSRC.c
Reformat the sources with orte/uncrustify script
[orte.git] / orte / liborte / RTPSInfoSRC.c
index fd43140e6a4c237c7f87e5152b43478224da7511..cb08e37c95fd08b77461e39b74f0bc9d97b97e07 100644 (file)
@@ -3,36 +3,38 @@
  *
  *  DEBUG:  section 44                  message INFO SRC
  *
- *  -------------------------------------------------------------------  
- *                                ORTE                                 
- *                      Open Real-Time Ethernet                       
- *                                                                    
- *                      Copyright (C) 2001-2006                       
- *  Department of Control Engineering FEE CTU Prague, Czech Republic  
- *                      http://dce.felk.cvut.cz                       
- *                      http://www.ocera.org                          
- *                                                                    
- *  Author:             Petr Smolik    petr@smoliku.cz             
- *  Advisor:            Pavel Pisa                                   
- *  Project Responsible: Zdenek Hanzalek                              
+ *  -------------------------------------------------------------------
+ *                                ORTE
+ *                      Open Real-Time Ethernet
+ *
+ *                      Copyright (C) 2001-2006
+ *  Department of Control Engineering FEE CTU Prague, Czech Republic
+ *                      http://dce.felk.cvut.cz
+ *                      http://www.ocera.org
+ *
+ *  Author:              Petr Smolik   petr@smoliku.cz
+ *  Advisor:             Pavel Pisa
+ *  Project Responsible: Zdenek Hanzalek
  *  --------------------------------------------------------------------
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation; either version 2 of the License, or
  *  (at your option) any later version.
- *  
+ *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
- *  
- */ 
+ *
+ */
 
 #include "orte_all.h"
 
 /**********************************************************************************/
-void RTPSInfoSRC(CDR_Codec *cdrCodec,MessageInterpret *mi) {
+void
+RTPSInfoSRC(CDR_Codec *cdrCodec, MessageInterpret *mi)
+{
   IPAddress          ipa;
   ProtocolVersion    protocol;
   VendorId           vid;
@@ -43,7 +45,7 @@ void RTPSInfoSRC(CDR_Codec *cdrCodec,MessageInterpret *mi) {
 
   /* appIPAddress */
   CDR_get_ulong(cdrCodec, (CORBA_unsigned_long *)&ipa);
-  
+
   /* ProtocolVersion */
   CDR_get_octet(cdrCodec, (CORBA_octet *)&protocol.major);
   CDR_get_octet(cdrCodec, (CORBA_octet *)&protocol.minor);
@@ -53,8 +55,8 @@ void RTPSInfoSRC(CDR_Codec *cdrCodec,MessageInterpret *mi) {
   CDR_get_octet(cdrCodec, (CORBA_octet *)&vid.minor);
 
   /* next data are sent in big endianing */
-  data_endian=cdrCodec->data_endian;
-  cdrCodec->data_endian=FLAG_BIG_ENDIAN;
+  data_endian = cdrCodec->data_endian;
+  cdrCodec->data_endian = FLAG_BIG_ENDIAN;
 
   /* HostId */
   CDR_get_ulong(cdrCodec, (CORBA_unsigned_long *)&hid);
@@ -62,20 +64,20 @@ void RTPSInfoSRC(CDR_Codec *cdrCodec,MessageInterpret *mi) {
   /* AppId */
   CDR_get_ulong(cdrCodec, (CORBA_unsigned_long *)&aid);
 
-  cdrCodec->data_endian=data_endian;
+  cdrCodec->data_endian = data_endian;
 
-  debug(44,3) ("  RTPSInfoSRC: \n");
-  debug(44,4) ("    appIPAddress:%s\n",IPAddressToString(ipa,sIPAddress));
-  debug(44,4) ("    pv:%lu,%lu vid:%lu,%lu hid:0x%x aid:0x%x\n",
-                             protocol.major,protocol.minor,vid.major,vid.minor,hid,aid);
+  debug(44, 3) ("  RTPSInfoSRC: \n");
+  debug(44, 4) ("    appIPAddress:%s\n", IPAddressToString(ipa, sIPAddress));
+  debug(44, 4) ("    pv:%lu,%lu vid:%lu,%lu hid:0x%x aid:0x%x\n",
+               protocol.major, protocol.minor, vid.major, vid.minor, hid, aid);
 
-  mi->sourceHostId=hid;
-  mi->sourceAppId=aid;
-  mi->sourceVersion=protocol;
-  mi->sourceVendorId=vid;
-  mi->unicastReplyIPAddress=ipa;
-  mi->unicastReplyPort=PORT_INVALID;
-  mi->multicastReplyIPAddress=IPADDRESS_INVALID;
-  mi->multicastReplyPort=PORT_INVALID;
-  mi->haveTimestamp=ORTE_FALSE;
+  mi->sourceHostId = hid;
+  mi->sourceAppId = aid;
+  mi->sourceVersion = protocol;
+  mi->sourceVendorId = vid;
+  mi->unicastReplyIPAddress = ipa;
+  mi->unicastReplyPort = PORT_INVALID;
+  mi->multicastReplyIPAddress = IPADDRESS_INVALID;
+  mi->multicastReplyPort = PORT_INVALID;
+  mi->haveTimestamp = ORTE_FALSE;
 }