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

ruby-changes:70234

From: Nobuyoshi <ko1@a...>
Date: Wed, 15 Dec 2021 15:32:09 +0900 (JST)
Subject: [ruby-changes:70234] 0f99f3fe5e (master): Adjust indents [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=0f99f3fe5e

From 0f99f3fe5e2458b6a922febf857584ede96eabc9 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 15 Dec 2021 15:31:46 +0900
Subject: Adjust indents [ci skip]

---
 hash.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/hash.c b/hash.c
index 8127751a49b..b0ee2553566 100644
--- a/hash.c
+++ b/hash.c
@@ -5242,7 +5242,7 @@ ruby_setenv(const char *name, const char *value) https://github.com/ruby/ruby/blob/trunk/hash.c#L5242
         mem_size = len + strlen(value) + 2;
         mem_ptr = malloc(mem_size);
         if (mem_ptr == NULL)
-          rb_sys_fail_str(rb_sprintf("malloc("PRIuSIZE")", mem_size));
+            rb_sys_fail_str(rb_sprintf("malloc("PRIuSIZE")", mem_size));
         snprintf(mem_ptr, mem_size, "%s=%s", name, value);
     }
 
@@ -5287,7 +5287,7 @@ ruby_setenv(const char *name, const char *value) https://github.com/ruby/ruby/blob/trunk/hash.c#L5287
             for (max = i; environ[max]; max++) ;
             tmpenv = ALLOC_N(char*, max+2);
             for (j=0; j<max; j++)		/* copy environment */
-              tmpenv[j] = ruby_strdup(environ[j]);
+                tmpenv[j] = ruby_strdup(environ[j]);
             tmpenv[max] = 0;
             environ = tmpenv;		/* tell exec where it is now */
         }
@@ -5296,7 +5296,7 @@ ruby_setenv(const char *name, const char *value) https://github.com/ruby/ruby/blob/trunk/hash.c#L5296
             char **envp = origenviron;
             while (*envp && *envp != environ[i]) envp++;
             if (!*envp)
-              xfree(environ[i]);
+                xfree(environ[i]);
             if (!value) {
                 while (environ[i]) {
                     environ[i] = environ[i+1];
-- 
cgit v1.2.1


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

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