From 4bd8b40b6c52194af8fb81f53fe2eb7cdd84140f Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Sat, 29 Dec 2018 11:27:19 +0100 Subject: [PATCH] - code formatting --- .../iso_mms/client/mms_client_get_namelist.c | 34 +++++++++---------- src/mms/iso_mms/client/mms_client_write.c | 24 ++++++------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/mms/iso_mms/client/mms_client_get_namelist.c b/src/mms/iso_mms/client/mms_client_get_namelist.c index e67831b3..9234f49d 100644 --- a/src/mms/iso_mms/client/mms_client_get_namelist.c +++ b/src/mms/iso_mms/client/mms_client_get_namelist.c @@ -112,28 +112,28 @@ mmsClient_parseGetNameListResponse(LinkedList* nameList, ByteBuffer* message) { /* TODO only parse get name list specific part here */ - bool moreFollows = true; + bool moreFollows = true; - uint8_t* buffer = message->buffer; - int maxBufPos = message->size; - int bufPos = 0; - int length; + uint8_t* buffer = message->buffer; + int maxBufPos = message->size; + int bufPos = 0; + int length; - uint8_t tag = buffer[bufPos++]; - if (tag == 0xa2) { - /* TODO parse confirmed error PDU */ - goto exit_error; - } - if (tag != 0xa1) goto exit_error; + uint8_t tag = buffer[bufPos++]; + if (tag == 0xa2) { + /* TODO parse confirmed error PDU */ + goto exit_error; + } + if (tag != 0xa1) goto exit_error; - bufPos = BerDecoder_decodeLength(buffer, &length, bufPos, maxBufPos); - if (bufPos < 0) goto exit_error; + bufPos = BerDecoder_decodeLength(buffer, &length, bufPos, maxBufPos); + if (bufPos < 0) goto exit_error; - /* get invokeId */ - tag = buffer[bufPos++]; - if (tag != 0x02) goto exit_error; + /* get invokeId */ + tag = buffer[bufPos++]; + if (tag != 0x02) goto exit_error; - bufPos = BerDecoder_decodeLength(buffer, &length, bufPos, maxBufPos); + bufPos = BerDecoder_decodeLength(buffer, &length, bufPos, maxBufPos); if (bufPos < 0) goto exit_error; bufPos += length; diff --git a/src/mms/iso_mms/client/mms_client_write.c b/src/mms/iso_mms/client/mms_client_write.c index 358dd515..d6a80a83 100644 --- a/src/mms/iso_mms/client/mms_client_write.c +++ b/src/mms/iso_mms/client/mms_client_write.c @@ -3,22 +3,22 @@ * * Copyright 2013-2018 Michael Zillgith * - * This file is part of libIEC61850. + * This file is part of libIEC61850. * - * libIEC61850 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 3 of the License, or - * (at your option) any later version. + * libIEC61850 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 3 of the License, or + * (at your option) any later version. * - * libIEC61850 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. + * libIEC61850 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. * - * You should have received a copy of the GNU General Public License - * along with libIEC61850. If not, see . + * You should have received a copy of the GNU General Public License + * along with libIEC61850. If not, see . * - * See COPYING file for the complete license text. + * See COPYING file for the complete license text. */ #include "libiec61850_platform_includes.h"