Browse Source

stm: fix some compiler warnings in CC3000 code.

pull/3/head
Damien 11 years ago
parent
commit
6f95432407
  1. 2
      stm/cc3k/evnt_handler.c
  2. 6
      stm/cc3k/socket.c
  3. 5
      stm/cc3k/wlan.c

2
stm/cc3k/evnt_handler.c

@ -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);
pRetParams = ((char *)pRetParams) + 4;
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)
{
set_socket_active_status(((tBsdReadReturnParams *)pRetParams)->iSocketDescriptor,SOCKET_STATUS_INACTIVE);

6
stm/cc3k/socket.c

@ -1002,9 +1002,9 @@ int
simple_link_send(long sd, const void *buf, long len, long flags,
const sockaddr *to, long tolen, long opcode)
{
unsigned char uArgSize, addrlen;
unsigned char *ptr, *pDataPtr, *args;
unsigned long addr_offset;
unsigned char uArgSize = 0, addrlen;
unsigned char *ptr, *pDataPtr = NULL, *args;
unsigned long addr_offset = 0;
int res;
tBsdReadReturnParams tSocketSendEvent;

5
stm/cc3k/wlan.c

@ -605,7 +605,7 @@ wlan_add_profile(unsigned long ulSecType,
unsigned char* ucPf_OrKey,
unsigned long ulPassPhraseLen)
{
unsigned short arg_len;
unsigned short arg_len = 0;
long ret;
unsigned char *ptr;
long i = 0;
@ -706,8 +706,7 @@ wlan_add_profile(unsigned long ulSecType,
}
// Initiate a HCI command
hci_command_send(HCI_CMND_WLAN_IOCTL_ADD_PROFILE,
ptr, arg_len);
hci_command_send(HCI_CMND_WLAN_IOCTL_ADD_PROFILE, ptr, arg_len);
// Wait for command complete event
SimpleLinkWaitEvent(HCI_CMND_WLAN_IOCTL_ADD_PROFILE, &ret);

Loading…
Cancel
Save