From d0ad5bb73d20343abe180ad8afcbfc66e7dec68b Mon Sep 17 00:00:00 2001 From: Jason Valenzuela Date: Sun, 13 Mar 2022 20:42:17 -0400 Subject: [PATCH] Remove const qualifier from EstablishClass3Connection() parameter. This function needs to conform to the OpenConnectionFunction pointer type, which does not apply const to the first parameter. Resolves incompatible pointer type warnings. --- source/src/cip/cipclass3connection.c | 2 +- source/src/cip/cipclass3connection.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/cip/cipclass3connection.c b/source/src/cip/cipclass3connection.c index 27f31cf1f1..578d6d8f43 100644 --- a/source/src/cip/cipclass3connection.c +++ b/source/src/cip/cipclass3connection.c @@ -24,7 +24,7 @@ void Class3ConnectionTimeoutHandler(CipConnectionObject *connection_object) { /**** Implementation ****/ CipError EstablishClass3Connection( - const CipConnectionObject *RESTRICT const connection_object, + CipConnectionObject *RESTRICT const connection_object, EipUint16 *const extended_error) { CipError cip_error = kCipErrorSuccess; diff --git a/source/src/cip/cipclass3connection.h b/source/src/cip/cipclass3connection.h index 24b6e8efa0..d1c198f685 100644 --- a/source/src/cip/cipclass3connection.h +++ b/source/src/cip/cipclass3connection.h @@ -50,7 +50,7 @@ EipStatus CipClass3ConnectionObjectStateEstablishedHandler( * - On an error the general status code to be put into the response */ CipError EstablishClass3Connection( - const CipConnectionObject *RESTRICT const connection_object, + CipConnectionObject *RESTRICT const connection_object, EipUint16 *const extended_error); /** @brief Initializes the explicit connections mechanism