summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/modusocket.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-06-18 18:19:24 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-06-18 18:44:57 +0300
commit07209f8592f15435d6abbccaad5347cea2c7722e (patch)
treea009978926973dc9bb1365872f4313435df57259 /stmhal/modusocket.c
parent080137961daef9a1b0fe1f37f54a820842728442 (diff)
downloadmicropython-07209f8592f15435d6abbccaad5347cea2c7722e.tar.gz
micropython-07209f8592f15435d6abbccaad5347cea2c7722e.zip
all: Rename mp_obj_type_t::stream_p to protocol.
It's now used for more than just stream protocol (e.g. pin protocol), so don't use false names.
Diffstat (limited to 'stmhal/modusocket.c')
-rw-r--r--stmhal/modusocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/modusocket.c b/stmhal/modusocket.c
index 9cc1f3314a..fbd1196446 100644
--- a/stmhal/modusocket.c
+++ b/stmhal/modusocket.c
@@ -376,7 +376,7 @@ STATIC const mp_obj_type_t socket_type = {
{ &mp_type_type },
.name = MP_QSTR_socket,
.make_new = socket_make_new,
- .stream_p = &socket_stream_p,
+ .protocol = &socket_stream_p,
.locals_dict = (mp_obj_t)&socket_locals_dict,
};