mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-socket/socket.c: fix indentation
This commit is contained in:
@@ -84,16 +84,14 @@ static int inet_pton(int af, const char *src, void *dst)
|
||||
|
||||
hints.ai_family = af;
|
||||
|
||||
if (getaddrinfo(src, NULL, &hints, &res) != 0)
|
||||
{
|
||||
if (getaddrinfo(src, NULL, &hints, &res) != 0) {
|
||||
printf("Couldn't resolve host %s\n", src);
|
||||
return -1;
|
||||
}
|
||||
|
||||
ressave = res;
|
||||
|
||||
while (res)
|
||||
{
|
||||
while (res) {
|
||||
memcpy(dst, res->ai_addr, res->ai_addrlen);
|
||||
res = res->ai_next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user