diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-26 19:19:48 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-26 19:19:48 +1100 |
commit | 9c388f66cff4f1387a06d7076843eedd1a17abad (patch) | |
tree | b793202ee82589793968b9589b9953b67a2c7d41 /esp8266 | |
parent | b568448306910d7526a5f1085eca8b33f36694b3 (diff) | |
download | micropython-9c388f66cff4f1387a06d7076843eedd1a17abad.tar.gz micropython-9c388f66cff4f1387a06d7076843eedd1a17abad.zip |
esp8266/modesp: Use mp_obj_str_get_str instead of mp_obj_str_get_data.
Diffstat (limited to 'esp8266')
-rw-r--r-- | esp8266/modesp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/esp8266/modesp.c b/esp8266/modesp.c index b7ce122b17..fef661e0c6 100644 --- a/esp8266/modesp.c +++ b/esp8266/modesp.c @@ -466,8 +466,7 @@ STATIC void esp_getaddrinfo_cb(const char *name, ip_addr_t *ipaddr, void *arg) { STATIC mp_obj_t esp_getaddrinfo(mp_obj_t host_in, mp_obj_t port_in, mp_obj_t lambda_in) { - mp_uint_t hlen; - const char *host = mp_obj_str_get_data(host_in, &hlen); + const char *host = mp_obj_str_get_str(host_in); ip_addr_t ipaddr; esp_getaddrinfo_cb_struct.lambda = lambda_in; |