summaryrefslogtreecommitdiff
path: root/unix/socket.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-29 13:43:38 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-29 13:43:38 +0000
commit3e1a5c10c5bf0a38c2ed3b9986b43b8cb8227b2f (patch)
tree76c6f10fcf7d669c52d2b9d84483e8c4f937b9d9 /unix/socket.c
parent07ddab529cb0953c473d30795e4dc3c6dfff0d89 (diff)
py: Rename old const type objects to mp_type_* for consistency.
Diffstat (limited to 'unix/socket.c')
-rw-r--r--unix/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/socket.c b/unix/socket.c
index 312554428..04c1d10c7 100644
--- a/unix/socket.c
+++ b/unix/socket.c
@@ -261,7 +261,7 @@ static mp_obj_t mod_socket_htons(mp_obj_t arg) {
static MP_DEFINE_CONST_FUN_OBJ_1(mod_socket_htons_obj, mod_socket_htons);
static mp_obj_t mod_socket_inet_aton(mp_obj_t arg) {
- assert(MP_OBJ_IS_TYPE(arg, &str_type));
+ assert(MP_OBJ_IS_TYPE(arg, &mp_type_str));
const char *s = mp_obj_str_get_str(arg);
struct in_addr addr;
if (!inet_aton(s, &addr)) {
@@ -274,7 +274,7 @@ static MP_DEFINE_CONST_FUN_OBJ_1(mod_socket_inet_aton_obj, mod_socket_inet_aton)
#if MICROPY_SOCKET_EXTRA
static mp_obj_t mod_socket_gethostbyname(mp_obj_t arg) {
- assert(MP_OBJ_IS_TYPE(arg, &str_type));
+ assert(MP_OBJ_IS_TYPE(arg, &mp_type_str));
const char *s = mp_obj_str_get_str(arg);
struct hostent *h = gethostbyname(s);
if (h == NULL) {