summaryrefslogtreecommitdiff
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 3212467863..edf5f00626 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -1182,11 +1182,11 @@ sock_s_getaddrinfo(int argc, VALUE *argv, VALUE _)
norevlookup = rsock_do_not_reverse_lookup;
}
- #ifdef HAVE_GETADDRINFO_A
- res = rsock_getaddrinfo_a(host, port, &hints, 0, Qnil);
- #else
- res = rsock_getaddrinfo(host, port, &hints, 0);
- #endif
+#ifdef HAVE_GETADDRINFO_A
+ res = rsock_getaddrinfo_a(host, port, &hints, 0, Qnil);
+#else
+ res = rsock_getaddrinfo(host, port, &hints, 0);
+#endif
ret = make_addrinfo(res, norevlookup);
rb_freeaddrinfo(res);