mruby-socket/socket.c: fix indentation

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-07-04 17:50:37 +09:00
parent 0558b1abd8
commit 0a4473bf64
+2 -4
View File
@@ -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;
}