Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
b5684483
Commit
b5684483
authored
Mar 26, 2017
by
Damien George
Browse files
extmod/modlwip: Use mp_obj_str_get_str instead of mp_obj_str_get_data.
parent
fb139a4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
extmod/modlwip.c
View file @
b5684483
...
...
@@ -1264,8 +1264,7 @@ STATIC void lwip_getaddrinfo_cb(const char *name, ip_addr_t *ipaddr, void *arg)
// lwip.getaddrinfo
STATIC
mp_obj_t
lwip_getaddrinfo
(
mp_obj_t
host_in
,
mp_obj_t
port_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
);
mp_int_t
port
=
mp_obj_get_int
(
port_in
);
getaddrinfo_state_t
state
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment