[FIX] ioctl in EplApiShutdown() need to wait for NMT_GS_OFF

The device /dev/epl is not correctly closed by EplApiShutdown()
when it is in EPL_STATE_RUNNING state.
The ioctl need to wait for EPL_STATE_SHUTDOWN state.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[Fix] Linux Powerlink user lib: add INSTALL target

If only the userspace stack is build there is nothing to install.
So make install fail since there is no rule to make target "install"

Just install libpowerlink.a in this case.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EdrvCyclic: Fix compiler warning

EdrvCyclic.c: In function ‘EdrvCyclicProcessTxBufferList’:
EdrvCyclic.c:784:25: attention : unused variable ‘bFirstPacket’ [-Wunused-variable]

bFirstPacket is only used if EDRV_USE_TTTX != FALSE

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EplApiGeneric: fix compiler warning

EplApiGeneric.c:229:1: attention : function declaration isn’t a prototype [-Wstrict-prototypes]
 static tEplKernel PUBLIC EplApiUpdateSdoConfig();
 ^
EplApiGeneric.c:2554:26: attention : function declaration isn’t a prototype [-Wstrict-prototypes]
 static tEplKernel PUBLIC EplApiUpdateSdoConfig()

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EplEventk: remove unused variable

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EplDllkCal: remove unused variable

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EplNmtMnu: fix compiler warning

Initialize uiNodeId_tmp to non-existent nodeId.

EplNmtMnu.c: In function 'EplNmtMnuProcessEvent':
EplNmtMnu.c:1921:12: warning: 'uiNodeId_tmp' may be used uninitialized in this function [-Wuninitialized]
EplNmtMnu.c:1523:33: note: 'uiNodeId_tmp' was declared here

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] ShbIpc-LinuxPthreads: fix compiler warning

ShbIpc-LinuxPthreads.c: In function 'ShbIpcStartSignalingNewData':
ShbIpc-LinuxPthreads.c:585:25: warning: variable 'pShbMemHeader' set but not used [-Wunused-but-set-variable]
ShbIpc-LinuxPthreads.c: In function 'ShbIpcStartSignalingJobReady':
ShbIpc-LinuxPthreads.c:764:21: warning: variable 'pShbMemHeader' set but not used [-Wunused-but-set-variable]
SharedBuff/ShbIpc-LinuxPthreads.c: In function 'ShbIpcSignalJobReady':
ShbIpc-LinuxPthreads.c:821:25: warning: variable 'pShbMemInst' set but not used [-Wunused-but-set-variable]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Daniel Krueger <daniel.krueger@systec-electronic.com>
[FIX] EplTimeruLinuxUser: remove unused variable

EplTimeruLinuxUser.c: In function 'EplTimeruCbMs':
EplTimeruLinuxUser.c:554:25: warning: variable 'Ret' set but not used [-Wunused-but-set-variable]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EplSdoComu: comment variable used by commented code

EplSdoComu.c: In function 'EplSdoComServerInitWriteByIndex':
EplSdoComu.c:2293:17: warning: variable 'dwAbortCode' set but not used [-Wunused-but-set-variable]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EplDllkCal: fix compiler warning

EplDllkCal.c: In function 'EplDllkCalAsyncSend':
EplDllkCal.c:746:123: warning: unused parameter 'Buffer_p' [-Wunused-parameter]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EplDllk: remove unused variable

EplDllk.c: In function 'EplDllkMnSendSoa':
EplDllk.c:7735:17: warning: variable 'pTxFrame' set but not used [-Wunused-but-set-variable]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EplApiLinuxUser: fix compiler warning

EplApiLinuxUser.c: In function 'EplApiGetIdentResponse':
EplApiLinuxUser.c:1031:57: warning: unused parameter 'uiNodeId_p' [-Wunused-parameter]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] demo_mn_console: add guard to declare the right variable depending on the system used

demo_main.c: In function 'printlog':
demo_main.c:224:26: warning: unused variable 'p_timeVal' [-Wunused-variable]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] demo_mn_console: fix compiler warning

On 32-bit machines the compiler says:
demo_main.c:460:5: note: expected 'char *' but argument is of type 'unsigned char *'
demo_main.c:530:5: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Wformat]
demo_main.c:531:5: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Wformat]

On 64-bit machines the data type of sizeof() is unsigned long. So we need
to cast the result of sizeof() to unsigned long and use %lu.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Daniel Krueger <daniel.krueger@systec-electronic.com>
[FIX] demo_mn_console: fix compiler warning

demo_main.c: In function 'main':
demo_main.c:460:5: warning: pointer targets in passing argument 1 of '__builtin_strncpy' differ in signedness [-Wpointer-sign]
demo_main.c:460:5: note: expected 'char *' but argument is of type 'unsigned char *'

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EdrvCyclic: fix compiler warining

EdrvCyclicCbTimerSlot() depend on EDRV_USE_TTTX == FALSE

EdrvCyclic.c:727:26: attention : ‘EdrvCyclicCbTimerSlot’ defined but not used [-Wunused-function]
 static tEplKernel PUBLIC EdrvCyclicCbTimerSlot(tEplTimerEventArg* pEventArg_p)

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EdrvCyclic: fix compiler warning

EdrvCyclic.c: In function ‘EdrvCyclicCbTimerCycle’:
EdrvCyclic.c:883:17: attention : ‘pTxBuffer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             Ret = EdrvCyclicInstance_l.m_pfnCbError(Ret, pTxBuffer);
                 ^
EdrvCyclic.c:785:25: note: ‘pTxBuffer’ was declared here
     tEdrvTxBuffer*      pTxBuffer;

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EplIdentu: fix compiler warning

EplIdentu.c:274:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (iIndex = 0; iIndex < tabentries (EplIdentuInstance_g.m_apIdentResponse); iIndex++)

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
[FIX] EplNmtMnu: fix compiler warning

EplNmtMnu.c: In function 'EplNmtMnuReset':
EplNmtMnu.c:3882:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (iIndex = 1; iIndex <= tabentries (EplNmtMnuInstance_g.m_aNodeInfo); iIndex++)

Signed-off-by: Romain Naour <romain.naour@openwide.fr>