Răsfoiți Sursa

Code beautifications

CapXilinx 9 ani în urmă
părinte
comite
edc92172b0
2 a modificat fișierele cu 6 adăugiri și 6 ștergeri
  1. 1 1
      source/src/cip/ciptcpipinterface.c
  2. 5 5
      source/src/enet_encap/encap.c

+ 1 - 1
source/src/cip/ciptcpipinterface.c

@@ -255,7 +255,7 @@ EipStatus GetAttributeAllTcpIpInterface(
     int attribute_number = attribute->attribute_number;
     if ( attribute_number < 32
          && (instance->cip_class->get_attribute_all_mask & 1 <<
-      attribute_number) )                                                         /* only return attributes that are flagged as being part of GetAttributeALl */
+             attribute_number) )                                                  /* only return attributes that are flagged as being part of GetAttributeALl */
     {
       message_router_request->request_path.attribute_number = attribute_number;
 

+ 5 - 5
source/src/enet_encap/encap.c

@@ -409,7 +409,7 @@ void DetermineDelayTime(EipByte *buffer_start,
 
   buffer_start += 12; /* start of the sender context */
   EipUint16 maximum_delay_time = GetIntFromMessage(
-     (const EipUint8 **const)&buffer_start );
+    (const EipUint8 **const)&buffer_start );
 
   if (0 == maximum_delay_time) {
     maximum_delay_time = kListIdentityDefaultDelayTime;
@@ -509,9 +509,9 @@ EipStatus HandleReceivedSendUnitDataCommand(EncapsulationData *receive_data) {
     /* Command specific data UDINT .. Interface Handle, UINT .. Timeout, CPF packets */
     /* don't use the data yet */
     GetDintFromMessage(
-       (const EipUint8 **const)&receive_data->current_communication_buffer_position );                /* skip over null interface handle*/
+      (const EipUint8 **const)&receive_data->current_communication_buffer_position );                 /* skip over null interface handle*/
     GetIntFromMessage(
-       (const EipUint8 **const)&receive_data->current_communication_buffer_position );               /* skip over unused timeout value*/
+      (const EipUint8 **const)&receive_data->current_communication_buffer_position );                /* skip over unused timeout value*/
     receive_data->data_length -= 6; /* the rest is in CPF format*/
 
     if ( kSessionStatusValid == CheckRegisteredSessions(receive_data) ) /* see if the EIP session is registered*/
@@ -548,9 +548,9 @@ EipStatus HandleReceivedSendRequestResponseDataCommand(
     /* Command specific data UDINT .. Interface Handle, UINT .. Timeout, CPF packets */
     /* don't use the data yet */
     GetDintFromMessage(
-       (const EipUint8 **const)&receive_data->current_communication_buffer_position );                /* skip over null interface handle*/
+      (const EipUint8 **const)&receive_data->current_communication_buffer_position );                 /* skip over null interface handle*/
     GetIntFromMessage(
-       (const EipUint8 **const)&receive_data->current_communication_buffer_position );               /* skip over unused timeout value*/
+      (const EipUint8 **const)&receive_data->current_communication_buffer_position );                /* skip over unused timeout value*/
     receive_data->data_length -= 6; /* the rest is in CPF format*/
 
     if ( kSessionStatusValid == CheckRegisteredSessions(receive_data) ) /* see if the EIP session is registered*/