From 1bdd422b9360c886c02c2216a230a6c95fe475a0 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 31 Dec 2018 14:59:29 +0000 Subject: [PATCH] Fix indents [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/raddrinfo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c index 4c6a9b511c..a6abad6467 100644 --- a/ext/socket/raddrinfo.c +++ b/ext/socket/raddrinfo.c @@ -417,13 +417,13 @@ str_is_number(const char *p) char *ep; if (!p || *p == '\0') - return 0; + return 0; ep = NULL; (void)STRTOUL(p, &ep, 10); if (ep && *ep == '\0') - return 1; + return 1; else - return 0; + return 0; } #define str_equal(ptr, len, name) \ @@ -515,7 +515,7 @@ rsock_getaddrinfo(VALUE host, VALUE port, struct addrinfo *hints, int socktype_h portp = port_str(port, pbuf, sizeof(pbuf), &additional_flags); if (socktype_hack && hints->ai_socktype == 0 && str_is_number(portp)) { - hints->ai_socktype = SOCK_DGRAM; + hints->ai_socktype = SOCK_DGRAM; } hints->ai_flags |= additional_flags;