@@ -470,7 +470,7 @@ static const mp_rom_map_elem_t socket_locals_dict_table[] = {
470
470
471
471
static MP_DEFINE_CONST_DICT (socket_locals_dict , socket_locals_dict_table ) ;
472
472
473
- mp_uint_t socket_read (mp_obj_t self_in , void * buf , mp_uint_t size , int * errcode ) {
473
+ static mp_uint_t socket_read (mp_obj_t self_in , void * buf , mp_uint_t size , int * errcode ) {
474
474
mod_network_socket_obj_t * self = MP_OBJ_TO_PTR (self_in );
475
475
if (self -> nic == MP_OBJ_NULL ) {
476
476
return MP_STREAM_ERROR ;
@@ -482,7 +482,7 @@ mp_uint_t socket_read(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode)
482
482
return ret ;
483
483
}
484
484
485
- mp_uint_t socket_write (mp_obj_t self_in , const void * buf , mp_uint_t size , int * errcode ) {
485
+ static mp_uint_t socket_write (mp_obj_t self_in , const void * buf , mp_uint_t size , int * errcode ) {
486
486
mod_network_socket_obj_t * self = MP_OBJ_TO_PTR (self_in );
487
487
if (self -> nic == MP_OBJ_NULL ) {
488
488
return MP_STREAM_ERROR ;
@@ -494,7 +494,7 @@ mp_uint_t socket_write(mp_obj_t self_in, const void *buf, mp_uint_t size, int *e
494
494
return ret ;
495
495
}
496
496
497
- mp_uint_t socket_ioctl (mp_obj_t self_in , mp_uint_t request , uintptr_t arg , int * errcode ) {
497
+ static mp_uint_t socket_ioctl (mp_obj_t self_in , mp_uint_t request , uintptr_t arg , int * errcode ) {
498
498
mod_network_socket_obj_t * self = MP_OBJ_TO_PTR (self_in );
499
499
if (request == MP_STREAM_CLOSE ) {
500
500
if (self -> nic != MP_OBJ_NULL ) {
0 commit comments