Skip to content

Commit a1dd840

Browse files
committed
use a more standard method of forward-declaring the structure
1 parent 7583cca commit a1dd840

File tree

1 file changed

+3
-1
lines changed
  • ports/espressif/common-hal/socketpool

1 file changed

+3
-1
lines changed

ports/espressif/common-hal/socketpool/Socket.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434

3535
#include "components/esp-tls/esp_tls.h"
3636

37+
typedef struct ssl_sslsocket_obj ssl_sslsocket_obj_t;
38+
3739
typedef struct {
3840
mp_obj_base_t base;
3941
int num;
@@ -42,7 +44,7 @@ typedef struct {
4244
int ipproto;
4345
bool connected;
4446
socketpool_socketpool_obj_t *pool;
45-
struct ssl_sslsocket_obj *ssl_socket;
47+
ssl_sslsocket_obj_t *ssl_socket;
4648
mp_uint_t timeout_ms;
4749
} socketpool_socket_obj_t;
4850

0 commit comments

Comments
 (0)