Skip to content

Commit 8b4a015

Browse files
SPRESENSEjerpelea
authored andcommitted
netutils/esp8266: Fix compile error
Fix compile error. Signed-off-by: SPRESENSE <[email protected]>
1 parent c83e17c commit 8b4a015

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/netutils/esp8266.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
* Pre-processor Definitions
3838
****************************************************************************/
3939

40-
#define lespSSID_SIZE 32 /* Number of character max of SSID (null char not included) */
41-
#define lespBSSID_SIZE 6
40+
#define LESP_SSID_SIZE 32 /* Number of character max of SSID (null char not included) */
41+
#define LESP_BSSID_SIZE 6
4242

4343
#define lespIP(x1,x2,x3,x4) ((x1) << 24 | (x2) << 16 | (x3) << 8 | (x4) << 0)
4444

@@ -66,8 +66,8 @@ typedef enum
6666
typedef struct
6767
{
6868
lesp_security_t security;
69-
char ssid[lespSSID_SIZE + 1]; /* +1 for null char */
70-
uint8_t bssid[lespBSSID_SIZE];
69+
char ssid[LESP_SSID_SIZE + 1]; /* +1 for null char */
70+
uint8_t bssid[LESP_BSSID_SIZE];
7171
int rssi;
7272
int channel;
7373
} lesp_ap_t;

netutils/esp8266/esp8266.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static lesp_socket_t *get_sock(int sockfd)
315315
if (((unsigned int)sockfd) >= SOCKET_NBR)
316316
{
317317
errno = EINVAL;
318-
ninfo("Esp8266 invalid sockfd\n", sockfd);
318+
ninfo("Esp8266 invalid sockfd %d\n", sockfd);
319319
return NULL;
320320
}
321321

@@ -2283,7 +2283,7 @@ int lesp_connect(int sockfd, FAR const struct sockaddr *addr,
22832283
socklen_t addrlen)
22842284
{
22852285
int ret = 0;
2286-
const char *proto_str;
2286+
const char *proto_str = "";
22872287
lesp_socket_t *sock;
22882288
struct sockaddr_in *in;
22892289
unsigned short port;

0 commit comments

Comments
 (0)