Skip to content

Commit

Permalink
fix warnings and fix error (OpenEtherCATsociety#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
mizoguch-ken authored and nakarlsson committed Sep 18, 2017
1 parent 3daefae commit 1903d1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion oshw/win32/nicdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ int ecx_srconfirm(ecx_portt *port, int idx, int timeout)
/* if nothing received, clear buffer index status so it can be used again */
if (wkc <= EC_NOFRAME)
{
ec_setbufstat(idx, EC_BUF_EMPTY);
ecx_setbufstat(port, idx, EC_BUF_EMPTY);
}

return wkc;
Expand Down
4 changes: 2 additions & 2 deletions soem/ethercatfoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int ecx_FOEread(ecx_contextt *context, uint16 slave, char *filename, uint32 pass
ec_clearmbx(&MbxOut);
aFOEp = (ec_FOEt *)&MbxIn;
FOEp = (ec_FOEt *)&MbxOut;
fnsize = strlen(filename);
fnsize = (uint16)strlen(filename);
maxdata = context->slavelist[slave].mbx_l - 12;
if (fnsize > maxdata)
{
Expand Down Expand Up @@ -215,7 +215,7 @@ int ecx_FOEwrite(ecx_contextt *context, uint16 slave, char *filename, uint32 pas
aFOEp = (ec_FOEt *)&MbxIn;
FOEp = (ec_FOEt *)&MbxOut;
dofinalzero = FALSE;
fnsize = strlen(filename);
fnsize = (uint16)strlen(filename);
maxdata = context->slavelist[slave].mbx_l - 12;
if (fnsize > maxdata)
{
Expand Down

0 comments on commit 1903d1f

Please sign in to comment.