X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/blobdiff_plain/e80a6f5e0540d9e10ee957240e6f5b3faaa54021..44b53e7b789fa481a19db83e52cb3f15f0d90e85:/orte/liborte/RTPSInfoDST.c diff --git a/orte/liborte/RTPSInfoDST.c b/orte/liborte/RTPSInfoDST.c index 3b0487c..9edcf60 100644 --- a/orte/liborte/RTPSInfoDST.c +++ b/orte/liborte/RTPSInfoDST.c @@ -3,42 +3,44 @@ * * DEBUG: section 42 message INFO DST * - * ------------------------------------------------------------------- - * 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 RTPSInfoDST(CDR_Codec *cdrCodec,MessageInterpret *mi) { +void +RTPSInfoDST(CDR_Codec *cdrCodec, MessageInterpret *mi) +{ CDR_Endianness data_endian; HostId hid; AppId aid; - data_endian=cdrCodec->data_endian; - cdrCodec->data_endian=FLAG_BIG_ENDIAN; + data_endian = cdrCodec->data_endian; + cdrCodec->data_endian = FLAG_BIG_ENDIAN; /* Host Id */ CDR_get_ulong(cdrCodec, (CORBA_unsigned_long *)&hid); @@ -46,17 +48,15 @@ void RTPSInfoDST(CDR_Codec *cdrCodec,MessageInterpret *mi) { /* App Id */ CDR_get_ulong(cdrCodec, (CORBA_unsigned_long *)&aid); - cdrCodec->data_endian=data_endian; + cdrCodec->data_endian = data_endian; - debug(42,3) (" RTPSInfoDST:\n"); - debug(42,4) (" hid:0x%x, aid:0x%x\n",hid,aid); + debug(42, 3) (" RTPSInfoDST:\n"); + debug(42, 4) (" hid:0x%x, aid:0x%x\n", hid, aid); - if (hid!=HID_UNKNOWN) { - mi->destHostId=hid; + if (hid != HID_UNKNOWN) { + mi->destHostId = hid; } - if (aid!=AID_UNKNOWN) { - mi->destAppId=aid; + if (aid != AID_UNKNOWN) { + mi->destAppId = aid; } } - -