Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
peda1337 committed Feb 5, 2018
1 parent 89c8cb0 commit 3e98c8c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
15 changes: 8 additions & 7 deletions source/src/opener_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,16 @@ typedef EipStatus (*OpenConnectionFunction)(
* @param connection_object The connection object which is closing the
* connection
*/
typedef void (*ConnectionCloseFunction)(
struct connection_object *connection_object);
typedef void (*ConnectionCloseFunction)(struct connection_object *
connection_object);

/** @ingroup CIP_API
* @brief Function prototype for handling the timeout of connections
*
* @param connection_object The connection object which connection timed out
*/
typedef void (*ConnectionTimeoutFunction)(
struct connection_object *connection_object);
typedef void (*ConnectionTimeoutFunction)(struct connection_object *
connection_object);

/** @ingroup CIP_API
* @brief Function prototype for sending data via a connection
Expand All @@ -342,8 +342,8 @@ typedef void (*ConnectionTimeoutFunction)(
*
* @return EIP stack status
*/
typedef EipStatus (*ConnectionSendDataFunction)(
struct connection_object *connection_object);
typedef EipStatus (*ConnectionSendDataFunction)(struct connection_object *
connection_object);

/** @ingroup CIP_API
* @brief Function prototype for receiving data via a connection
Expand All @@ -355,7 +355,8 @@ typedef EipStatus (*ConnectionSendDataFunction)(
* @return Stack status
*/
typedef EipStatus (*ConnectionReceiveDataFunction)(
struct connection_object *connection_object, const EipUint8 *data,
struct connection_object *connection_object,
const EipUint8 *data,
const EipUint16 data_length);

/** @ingroup CIP_API
Expand Down
3 changes: 2 additions & 1 deletion source/src/ports/POSIX/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ void LeaveStack(int signal);
int g_end_stack = 0;

/******************************************************************************/
int main(int argc, char *arg[]) {
int main(int argc,
char *arg[]) {
EipUint8 my_mac_address[6];
EipUint16 unique_connection_id;

Expand Down
3 changes: 2 additions & 1 deletion source/src/ports/WIN32/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ LeaveStack(int pa_nSig);
int g_end_stack = 0;

/******************************************************************************/
int main(int argc, char *arg[]) {
int main(int argc,
char *arg[]) {
EipUint8 acMyMACAddress[6];
EipUint16 nUniqueConnectionID;

Expand Down

0 comments on commit 3e98c8c

Please sign in to comment.