From 603e823739dc3bff68c9f722fc91cc15e6360ea4 Mon Sep 17 00:00:00 2001 From: Jason Valenzuela Date: Thu, 13 Jan 2022 18:40:39 -0500 Subject: [PATCH] Use correct constant when evaluating OpenProducingPointToPointConnection() return value. This was missed when the return type was changed in f68e049. Resolves GCC warnings about comparing members of different enumerations. --- source/src/cip/cipioconnection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/cip/cipioconnection.c b/source/src/cip/cipioconnection.c index 419580248..a9a1de4ba 100644 --- a/source/src/cip/cipioconnection.c +++ b/source/src/cip/cipioconnection.c @@ -1015,7 +1015,7 @@ CipError OpenCommunicationChannels(CipConnectionObject *connection_object) { if(OpenProducingPointToPointConnection(connection_object, common_packet_format_data) != - kEipStatusOk) { + kCipErrorSuccess) { OPENER_TRACE_ERR("error in PointToPoint producing connection\n"); return kCipErrorConnectionFailure; }