From a71c83a1d1aeca1d81d7c673929f8e836dec131e Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 15 Feb 2014 11:34:50 +0000 Subject: Change mp_obj_type_t.name from const char * to qstr. Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method. --- unix/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unix/socket.c') diff --git a/unix/socket.c b/unix/socket.c index 4b160e0bc8..25c4bfcb46 100644 --- a/unix/socket.c +++ b/unix/socket.c @@ -238,7 +238,7 @@ static const mp_method_t microsocket_type_methods[] = { static const mp_obj_type_t microsocket_type = { { &mp_const_type }, - "socket", + .name = MP_QSTR_socket, .print = socket_print, .make_new = socket_make_new, .getiter = NULL, -- cgit v1.2.3