001-warnings.patch 816 B

123456789101112131415161718192021222324
  1. --- a/src/include/linux/ifxos_linux_thread.h
  2. +++ b/src/include/linux/ifxos_linux_thread.h
  3. @@ -206,7 +206,7 @@ typedef struct
  4. /**
  5. LINUX User Thread - map the Thread ID.
  6. */
  7. -typedef int IFXOS_thread_t;
  8. +typedef pthread_t IFXOS_thread_t;
  9. /**
  10. LINUX Kernel Process - map the Process ID.
  11. --- a/src/linux/ifxos_linux_socket_appl.c
  12. +++ b/src/linux/ifxos_linux_socket_appl.c
  13. @@ -363,8 +363,8 @@ IFX_int_t IFXOS_SocketSendTo(
  14. IFXOS_RETURN_IF_POINTER_NULL(pBuffer, IFX_ERROR);
  15. IFXOS_RETURN_IF_ARG_LE_ZERO(bufSize_byte, IFX_ERROR);
  16. - ret = (IFX_int_t)sendto((int)socFd, (const char*)pBuffer,
  17. - (int)bufSize_byte, 0, pSocAddr, sizeof(IFXOS_sockAddr_t));
  18. + ret = (IFX_int_t)sendto(socFd, pBuffer,
  19. + bufSize_byte, 0, (struct sockaddr *)pSocAddr, sizeof(IFXOS_sockAddr_t));
  20. return ret;
  21. }