Skip to content

Commit b323b42

Browse files
yoctopucedpgeorge
authored andcommitted
extmod/modsocket: Add missing static in private function definitions.
Signed-off-by: Yoctopuce <[email protected]>
1 parent 3dd605e commit b323b42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extmod/modsocket.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static const mp_rom_map_elem_t socket_locals_dict_table[] = {
470470

471471
static MP_DEFINE_CONST_DICT(socket_locals_dict, socket_locals_dict_table);
472472

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) {
474474
mod_network_socket_obj_t *self = MP_OBJ_TO_PTR(self_in);
475475
if (self->nic == MP_OBJ_NULL) {
476476
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)
482482
return ret;
483483
}
484484

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) {
486486
mod_network_socket_obj_t *self = MP_OBJ_TO_PTR(self_in);
487487
if (self->nic == MP_OBJ_NULL) {
488488
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
494494
return ret;
495495
}
496496

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) {
498498
mod_network_socket_obj_t *self = MP_OBJ_TO_PTR(self_in);
499499
if (request == MP_STREAM_CLOSE) {
500500
if (self->nic != MP_OBJ_NULL) {

0 commit comments

Comments
 (0)