stm: fix some compiler warnings in CC3000 code.
This commit is contained in:
parent
d9d6201b52
commit
6f95432407
|
@ -362,7 +362,7 @@ hci_event_handler(void *pRetParams, unsigned char *from, unsigned char *fromlen)
|
||||||
STREAM_TO_UINT32((char *)pucReceivedParams,SL_RECEIVE_NUM_BYTES_OFFSET,*(unsigned long *)pRetParams);
|
STREAM_TO_UINT32((char *)pucReceivedParams,SL_RECEIVE_NUM_BYTES_OFFSET,*(unsigned long *)pRetParams);
|
||||||
pRetParams = ((char *)pRetParams) + 4;
|
pRetParams = ((char *)pRetParams) + 4;
|
||||||
STREAM_TO_UINT32((char *)pucReceivedParams,SL_RECEIVE__FLAGS__OFFSET,*(unsigned long *)pRetParams);
|
STREAM_TO_UINT32((char *)pucReceivedParams,SL_RECEIVE__FLAGS__OFFSET,*(unsigned long *)pRetParams);
|
||||||
tBsdReadReturnParams *tread = (tBsdReadReturnParams *)pRetParams;
|
//tBsdReadReturnParams *tread = (tBsdReadReturnParams *)pRetParams; // unused
|
||||||
if(((tBsdReadReturnParams *)pRetParams)->iNumberOfBytes == ERROR_SOCKET_INACTIVE)
|
if(((tBsdReadReturnParams *)pRetParams)->iNumberOfBytes == ERROR_SOCKET_INACTIVE)
|
||||||
{
|
{
|
||||||
set_socket_active_status(((tBsdReadReturnParams *)pRetParams)->iSocketDescriptor,SOCKET_STATUS_INACTIVE);
|
set_socket_active_status(((tBsdReadReturnParams *)pRetParams)->iSocketDescriptor,SOCKET_STATUS_INACTIVE);
|
||||||
|
|
|
@ -1002,9 +1002,9 @@ int
|
||||||
simple_link_send(long sd, const void *buf, long len, long flags,
|
simple_link_send(long sd, const void *buf, long len, long flags,
|
||||||
const sockaddr *to, long tolen, long opcode)
|
const sockaddr *to, long tolen, long opcode)
|
||||||
{
|
{
|
||||||
unsigned char uArgSize, addrlen;
|
unsigned char uArgSize = 0, addrlen;
|
||||||
unsigned char *ptr, *pDataPtr, *args;
|
unsigned char *ptr, *pDataPtr = NULL, *args;
|
||||||
unsigned long addr_offset;
|
unsigned long addr_offset = 0;
|
||||||
int res;
|
int res;
|
||||||
tBsdReadReturnParams tSocketSendEvent;
|
tBsdReadReturnParams tSocketSendEvent;
|
||||||
|
|
||||||
|
|
|
@ -605,7 +605,7 @@ wlan_add_profile(unsigned long ulSecType,
|
||||||
unsigned char* ucPf_OrKey,
|
unsigned char* ucPf_OrKey,
|
||||||
unsigned long ulPassPhraseLen)
|
unsigned long ulPassPhraseLen)
|
||||||
{
|
{
|
||||||
unsigned short arg_len;
|
unsigned short arg_len = 0;
|
||||||
long ret;
|
long ret;
|
||||||
unsigned char *ptr;
|
unsigned char *ptr;
|
||||||
long i = 0;
|
long i = 0;
|
||||||
|
@ -706,8 +706,7 @@ wlan_add_profile(unsigned long ulSecType,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initiate a HCI command
|
// Initiate a HCI command
|
||||||
hci_command_send(HCI_CMND_WLAN_IOCTL_ADD_PROFILE,
|
hci_command_send(HCI_CMND_WLAN_IOCTL_ADD_PROFILE, ptr, arg_len);
|
||||||
ptr, arg_len);
|
|
||||||
|
|
||||||
// Wait for command complete event
|
// Wait for command complete event
|
||||||
SimpleLinkWaitEvent(HCI_CMND_WLAN_IOCTL_ADD_PROFILE, &ret);
|
SimpleLinkWaitEvent(HCI_CMND_WLAN_IOCTL_ADD_PROFILE, &ret);
|
||||||
|
|
Loading…
Reference in New Issue