1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

smaller changes in OPAL code

git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@194 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
Steffen Vogel 2014-09-04 11:24:26 +00:00
parent 3ec045e525
commit 84411cc549

View file

@ -164,18 +164,19 @@ static void *RecvFromIPPort(void *arg)
OpalPrint("%s: Received message with unknown version. Skipping..\n", PROGNAME);
continue;
}
if (msg.type != MSG_TYPE_DATA) {
else if (msg.type != MSG_TYPE_DATA) {
OpalPrint("%s: Received no data. Skipping..\n", PROGNAME);
continue;
}
msg_size = MSG_LEN(msg.length);
/** @todo: We may check the sequence number here. */
msg.sequence = ntohs(msg.sequence);
if (msg.endian != MSG_ENDIAN_HOST)
msg_swap(&msg);
msg_size = MSG_LEN(msg.length);
/***********************************************************************/
if (n < 1) {