CC3300: Add const to pointers in arguments to wlan_connect; remove an unused function prototype

This commit is contained in:
Pierre-noel Bouteville 2015-09-09 16:34:37 -06:00 committed by Gregory Nutt
parent 5058ed3ef4
commit 8651e0f2ca
3 changed files with 9 additions and 10 deletions

View File

@ -357,11 +357,8 @@ int cc3000_wait_data(int sockfd)
*
****************************************************************************/
int to_cc3000_accept_socket(int sockfd, struct sockaddr *addr, socklen_t *addrlen);
int cc3000_accept_socket(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
{
//return to_cc3000_accept_socket(sockfd, addr,addrlen);
DEBUGASSERT(spiconf.cc3000fd >= 0);
cc3000_acceptcfg cfg;

View File

@ -391,8 +391,9 @@ void wlan_stop(void)
*****************************************************************************/
#ifndef CC3000_TINY_DRIVER
long wlan_connect(unsigned long ulSecType, char *ssid, long ssid_len,
uint8_t *bssid, uint8_t *key, long key_len)
long wlan_connect(unsigned long ulSecType, FAR const char *ssid,
long ssid_len, FAR const uint8_t *bssid,
FAR const uint8_t *key, long key_len)
{
long ret;
uint8_t *ptr;
@ -445,7 +446,7 @@ long wlan_connect(unsigned long ulSecType, char *ssid, long ssid_len,
return ret;
}
#else
long wlan_connect(char *ssid, long ssid_len)
long wlan_connect(FAR const char *ssid, long ssid_len)
{
long ret;
uint8_t *ptr;

View File

@ -194,10 +194,11 @@ void wlan_stop(void);
*****************************************************************************/
#ifndef CC3000_TINY_DRIVER
long wlan_connect(unsigned long ulSecType, char *ssid, long ssid_len,
uint8_t *bssid, uint8_t *key, long key_len);
long wlan_connect(unsigned long ulSecType, FAR const char *ssid,
long ssid_len, FAR const uint8_t *bssid,
FAR const uint8_t *key, long key_len);
#else
long wlan_connect(char *ssid, long ssid_len);
long wlan_connect(FAR const char *ssid, long ssid_len);
#endif
/*****************************************************************************