drivers/cc3000: Rename timeval to cc3000_timeval, to avoid clash.

The timeval struct can be defined by system C headers.
pull/2051/merge
Damien George 2016-05-10 23:46:00 +01:00
rodzic 79a38a7a43
commit ce2d34d74f
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -169,9 +169,9 @@ typedef INT32 time_t;
typedef UINT32 clock_t;
typedef INT32 suseconds_t;
typedef struct timeval timeval;
typedef struct cc3000_timeval cc3000_timeval;
struct timeval
struct cc3000_timeval
{
time_t tv_sec; /* seconds */
suseconds_t tv_usec; /* microseconds */

Wyświetl plik

@ -416,7 +416,7 @@ extern INT32 CC3000_EXPORT(connect)(INT32 sd, const sockaddr *addr, INT32 addrle
//
//*****************************************************************************
extern INT16 CC3000_EXPORT(select)(INT32 nfds, fd_set *readsds, fd_set *writesds,
fd_set *exceptsds, struct timeval *timeout);
fd_set *exceptsds, struct cc3000_timeval *timeout);
//*****************************************************************************
//

Wyświetl plik

@ -587,7 +587,7 @@ INT32 CC3000_EXPORT(connect)(INT32 sd, const sockaddr *addr, INT32 addrlen)
//*****************************************************************************
INT16 CC3000_EXPORT(select)(INT32 nfds, fd_set *readsds, fd_set *writesds, fd_set *exceptsds,
struct timeval *timeout)
struct cc3000_timeval *timeout)
{
UINT8 *ptr, *args;
tBsdSelectRecvParams tParams;