Skip to content

Commit

Permalink
Fixes EIPStackGroup#80 by correcting position of const qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMelikMerkumians committed Jan 12, 2017
1 parent 66800fe commit 7faccb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions source/src/cip/cipconnectionmanager.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ typedef struct {

/* Connection Object functions */
ProductionTrigger GetProductionTrigger(
const ConnectionObject const *connection_object) {
const ConnectionObject *const connection_object) {
const unsigned int ProductionTriggerMask = 0x70;

switch (connection_object->transport_type_class_trigger
Expand Down Expand Up @@ -86,7 +86,7 @@ void SetProductionTrigger(const enum ProductionTrigger production_trigger,
}

CipUint GetProductionInhibitTime(
const ConnectionObject const *connection_object) {
const ConnectionObject *const connection_object) {
return connection_object->production_inhibit_time;
}

Expand All @@ -96,7 +96,7 @@ void SetProductionInhibitTime(const EipUint16 production_inhibit_time,
}

CipUdint GetTargetToOriginatorRequestedPackedInterval(
const ConnectionObject const *connection_object) {
const ConnectionObject *const connection_object) {
return connection_object->t_to_o_requested_packet_interval;
}

Expand Down
6 changes: 3 additions & 3 deletions source/src/cip/cipconnectionmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,18 @@ typedef enum ProductionTrigger {
} ProductionTrigger;

ProductionTrigger GetProductionTrigger(
const ConnectionObject const *connection_object);
const ConnectionObject *const connection_object);

void SetProductionTrigger(const ProductionTrigger production_trigger,
ConnectionObject *connection_object);

CipUint GetProductionInhibitTime(const ConnectionObject const *connection_object);
CipUint GetProductionInhibitTime(const ConnectionObject *const connection_object);

void SetProductionInhibitTime(const EipUint16 production_inhibit_time,
ConnectionObject *const connection_object);

CipUdint GetTargetToOriginatorRequestedPackedInterval(
const ConnectionObject const *connection_object);
const ConnectionObject *const connection_object);

/** @brief macros for comparing sequence numbers according to CIP spec vol
* 2 3-4.2 for int type variables
Expand Down

0 comments on commit 7faccb4

Please sign in to comment.