[前][次][番号順一覧][スレッド一覧]

ruby-changes:54450

From: nobu <ko1@a...>
Date: Mon, 31 Dec 2018 23:59:35 +0900 (JST)
Subject: [ruby-changes:54450] nobu:r66665 (trunk): Fix indents [ci skip]

nobu	2018-12-31 23:59:29 +0900 (Mon, 31 Dec 2018)

  New Revision: 66665

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66665

  Log:
    Fix indents [ci skip]

  Modified files:
    trunk/ext/socket/raddrinfo.c
Index: ext/socket/raddrinfo.c
===================================================================
--- ext/socket/raddrinfo.c	(revision 66664)
+++ ext/socket/raddrinfo.c	(revision 66665)
@@ -417,13 +417,13 @@ str_is_number(const char *p) https://github.com/ruby/ruby/blob/trunk/ext/socket/raddrinfo.c#L417
     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 https://github.com/ruby/ruby/blob/trunk/ext/socket/raddrinfo.c#L515
     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;
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]