lantiq: ltq-ifxos: Do not force O3 build any more
[openwrt/openwrt.git] / package / kernel / lantiq / ltq-ifxos / patches / 001-warnings.patch
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 /**
11 LINUX Kernel Process - map the Process ID.
12 --- a/src/linux/ifxos_linux_socket_appl.c
13 +++ b/src/linux/ifxos_linux_socket_appl.c
14 @@ -363,8 +363,8 @@ IFX_int_t IFXOS_SocketSendTo(
15 IFXOS_RETURN_IF_POINTER_NULL(pBuffer, IFX_ERROR);
16 IFXOS_RETURN_IF_ARG_LE_ZERO(bufSize_byte, IFX_ERROR);
17
18 - ret = (IFX_int_t)sendto((int)socFd, (const char*)pBuffer,
19 - (int)bufSize_byte, 0, pSocAddr, sizeof(IFXOS_sockAddr_t));
20 + ret = (IFX_int_t)sendto(socFd, pBuffer,
21 + bufSize_byte, 0, (struct sockaddr *)pSocAddr, sizeof(IFXOS_sockAddr_t));
22
23 return ret;
24 }