Skip to content

Commit b568448

Browse files
committed
extmod/modlwip: Use mp_obj_str_get_str instead of mp_obj_str_get_data.
1 parent fb139a4 commit b568448

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extmod/modlwip.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,8 +1264,7 @@ STATIC void lwip_getaddrinfo_cb(const char *name, ip_addr_t *ipaddr, void *arg)
12641264

12651265
// lwip.getaddrinfo
12661266
STATIC mp_obj_t lwip_getaddrinfo(mp_obj_t host_in, mp_obj_t port_in) {
1267-
mp_uint_t hlen;
1268-
const char *host = mp_obj_str_get_data(host_in, &hlen);
1267+
const char *host = mp_obj_str_get_str(host_in);
12691268
mp_int_t port = mp_obj_get_int(port_in);
12701269

12711270
getaddrinfo_state_t state;

0 commit comments

Comments
 (0)