Skip to content

Commit

Permalink
Remove const qualifier from EstablishClass3Connection() parameter.
Browse files Browse the repository at this point in the history
This function needs to conform to the OpenConnectionFunction pointer type,
which does not apply const to the first parameter. Resolves incompatible
pointer type warnings.
  • Loading branch information
jvalenzuela committed Oct 19, 2023
1 parent aeab220 commit d0ad5bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/src/cip/cipclass3connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion source/src/cip/cipclass3connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0ad5bb

Please sign in to comment.